Web scraping with your web browser: Why not?
8chananon.github.io
Web scraping with your web browser: Why not?
1–10 of 77 posts
Re: Web scraping with your web browser: Why not?
#2Re: Web scraping with your web browser: Why not?
#3I've read through that (hard to read, because of the bad formatting) but I still don't understand why you would do that instead of Playwright, Puppeteer etc. - The only reason seems to be "This technique certainly has its limits.".
Re: Web scraping with your web browser: Why not?
#4I've read through that (hard to read, because of the bad formatting) but I still don't understand why you would do that instead of Playwright, Puppeteer etc. - The only reason seems to be "This technique certainly has its limits.".
Solutions that want to automate in the context of their customers' browser. For example, ListPerfectly, a solution for cross-listing to eBay, Poshmark, etc, does this in their browser extension.
Re: Web scraping with your web browser: Why not?
#5Um... [0]
Re: Web scraping with your web browser: Why not?
#6> You can find plenty of tutorials on the Internet about the art of web scraping... and the first things you will learn about are Python and Beautiful Soup. There is no tutorial on web scraping with Javascript in a web browser... Um... [0] [0] https://bhmt.dev/blog/scraping
Re: Web scraping with your web browser: Why not?
#7> You can find plenty of tutorials on the Internet about the art of web scraping... and the first things you will learn about are Python and Beautiful Soup. There is no tutorial on web scraping with Javascript in a web browser... Um... [0] [0] https://bhmt.dev/blog/scraping
Rather long so I'll read it later. Thanks for the tip. Got more or is that it?
Re: Web scraping with your web browser: Why not?
#8I went the browser extension route and used grease monkey to inject custom JavaScript. I patched the window.fetch and because it was a react page it did most of the work for me providing me with a slightly convolute JSON doc everytime I scrolled. Getting the data extracted was only a question of getting a flask API with correct CORS settings running.
Thanks for posting using a local proxy for even more control could be helpful in the future.
Re: Web scraping with your web browser: Why not?
#9I've read through that (hard to read, because of the bad formatting) but I still don't understand why you would do that instead of Playwright, Puppeteer etc. - The only reason seems to be "This technique certainly has its limits.".
If you can elaborate, I would very much appreciate it. I'm always interested in doing better.
Why use Puppeteer etc. when you don't have to? What is the argument for using these additional tools versus not using them?
Re: Web scraping with your web browser: Why not?
#10I've posted here about scraping for example HN with JavaScript. It's certainly not a new idea.