by Dunedan · 7y ago · 0 comments
Yes, of course! To get the source code of a web site you don't need a browser and all its complexity. It makes me so sad how far we have come in terms of unnecessary complexity for simple tasks.
If you want to extract data from web pages without requiring hundreds of megabytes for something like Electron, there are lots of scraping libraries out there. There are for example at least two good Python implementations: Scrapy[1] and BeautifulSoup[2].
[1]: https://scrapy.org/
I do a bunch of web-scraping for hobby shit, and I've love to be able to not have to shell out to chromium for some sites, but unfortunately the modern web basically means you're stuck with it.
You’re right in the overhead though; I’d stay miles away from Electron for scraping but you’ll need more than a CURL wrapper to properly fetch data in all shapes and sizes :) Headless Chromium does do the trick in that regard.
So i will edit this question to this : Is there a better way to code a portable application with a graphical user interface to scrape a given site ?
Thanks for your comment.
Some example would be Scrapinghub's Portia system and the Kantu startup. There are also established players like UIPath and Visualwebripper.
Yes but using regular expressions is the last and least recommended solution, please read : https://stackoverflow.com/questions/3577641/how-do-you-parse...
What would you want to scrape there which is not against their ToS and a violation of user privacy in general?
Would get rid of the clutter and keep FB from some amount of shenanigans with my browser.
Facebook broke both legal and ethical “ToS” countless times and has no plan to stop.
Why do you consider what Facebook is doing as OK but a little web scraping for personal usage to be so bad?