Closed ricsdeol closed 5 months ago
It is! And it's actively used internally, it's just lack of time to keep the docs updated. In fact there's even more coming in this year. I'll give answers in the next comment.
@ricsdeol First of all I need to make new release and update the README a bit.
VESSEL_ENV=prod bundle exec vessel start crawler_name
Vessel::Crawler::FieldType.add(:desc) do |value|
value.to_s.strip[0..20] + "..."
end
and then assign filed in the crawler:
field :desc, value: xpath(...)
it will be shortened to 20 chars when assignined.
Debug
but for production you could add SendToProduction
middleware that at the end will send data to given endpoint.PriceHelper
and so on.Ok very cool, thanks a lot
Hello I am very interested in the Vessel Crawler, I found it simple and productive. However, I have some doubts that are not in the README or more elaborate example.
bundle exec vessel new MyCrawler
How i run in PROD mode? What would Fields or Middleware? How to use it?
Could this path
lib/helpers
be where I could put my classes, for example saved in a database or make a call in another api with data from the crawler ?I can help improve this documentation with these features, but I need this initial kick to create a more complete documentation.
Thanks Att.