News for hackers. Stuff that matters.
Re:Show HN: flyscrape – An expressive and elegant web scraper by dinkleberg on Friday October 13, 2023 @11:31AM (#37871743)
This looks interesting, how would you compare it with colly? I’ve used colly for a while and overall am pleased with it, but things can always be improved.
Re:Show HN: flyscrape – An expressive and elegant web scraper by philippta on Friday October 13, 2023 @11:56AM (#37872019)
Colly is a great library for builing scrapers if you are familiar with Go.

Flyscrape a cli tool that lets you define your scraping logic with a declarative JavaScript API, while it takes care of issuing requests, caching, rate limiting and more.

Re:Show HN: flyscrape – An expressive and elegant web scraper by dinkleberg on Friday October 13, 2023 @01:26PM (#37873133)
Ah lol somehow I totally missed the fact that you write it with JS. That is a neat approach.
Re:Show HN: flyscrape – An expressive and elegant web scraper by peyloride on Monday October 16, 2023 @06:43AM (#37897928)
Hey, quick question: Is there a way to handle async behavior? Like in puppeteer we had something like waitFor helper to wait while loading the page. I couldn't find a similar thing in your readme. Or is this framework for only static pages?
Re:Show HN: flyscrape – An expressive and elegant web scraper by philippta on Monday October 16, 2023 @12:59PM (#37902794)
At this time it works with server-side rendered / static pages only and does not execute any JavaScript of the website.

The data extraction function of your script also runs aside the crawler, not inside the page.