You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For example when we need to treats comma separated integer, we want to text processing before populating DB (e.g. using ActiveRecord).
So we need text processing methods after data scraping.
classJuknife::Scraperscrapingdoitem:cost,'#cost'items:list,'ul'doitem:item1,'li:nth-of-type(1)'item:item2,'li:nth-of-type(2)'endendprocess:costdo |text|
text.delete(',')# something processing to `text`endprocess:item1do |text|
text.delete(',')# something processing to `text`end# or process:list,:item1do |text|
text.delete(',')# something processing to `text`endend
The text was updated successfully, but these errors were encountered:
Proposal
For example when we need to treats comma separated integer, we want to text processing before populating DB (e.g. using ActiveRecord).
So we need text processing methods after data scraping.
The text was updated successfully, but these errors were encountered: