HTTP/1.1 401 Unauthorized
Server: Microsoft-IIS/8.5
WWW-Authenticate: NTLM
WWW-Authenticate: Negotiate
...
Does RoboBrowser support these kinds of protocols? I tried to get it to work with Scrapy, but it seemed non-trivial...RoboBrowser: Your friendly neighborhood web scraper
41–50 of 61 posts
Re: RoboBrowser: Your friendly neighborhood web scraper
#42Re: RoboBrowser: Your friendly neighborhood web scraper
#43Does this run javascript on the page? I've done quite a bit of scraping with scrapy, and have had to use phantomjs in many cases because static html doesn't get what you're after.
So static HTML parsing only.
Re: RoboBrowser: Your friendly neighborhood web scraper
#44Earlier quoted context omitted.
One problem with selenium last time I used it, was that it is very slow. Maybe this python library fixes this (i.e. no browser will show).
Alas, this is both a downside and an upside of Selenium. It's rather slow because it does need to spin up a Firefox instance, but it is very user-friendly and easy to learn because you can see exactly where you are at just by looking at the web browser. You can run headless Selenium, and speed it up by using a static Firefox instance, but even then it'll be maybe 2-3x slower than some of the others. The only reason t…
Re: RoboBrowser: Your friendly neighborhood web scraper
#45Does this run javascript on the page? I've done quite a bit of scraping with scrapy, and have had to use phantomjs in many cases because static html doesn't get what you're after.
Re: RoboBrowser: Your friendly neighborhood web scraper
#46Re: RoboBrowser: Your friendly neighborhood web scraper
#47Earlier quoted context omitted.
It doesn't. To scrape (or fake-API) js-only websites you have to either: - drive a browser (firefox/chrome) via already mentioned here selenium/webdriver (potentially hiding the actual browser window into a virtual X by wrapping the whole thing with xvfb-run), - or use one of the webkit-based toolkits: phantomjs [1] or headless horseman [2]. There is also an interesting project that combines the two, i.e. it drives a…
I recently wrote a browser-driven scraper using Nightmare[1], which uses Electron under the hood. Another option for those who prefer python is dryscrape[2], although I haven't tried it. [1] https://github.com/segmentio/nightmare [2] http://dryscrape.readthedocs.io/en/latest/
Re: RoboBrowser: Your friendly neighborhood web scraper
#48I'm surprised nobody has mentioned WWW::Mechanize - classic perl library [1] or python port of it [2], which is much closer to RoboBrowser than selenium/phantomjs/horseman. [1] http://search.cpan.org/~ether/WWW-Mechanize-1.75/lib/WWW/Mec... [2] https://pypi.python.org/pypi/mechanize/
Mechanize is outdated and python 2 only. We tried it and switched to RoboBrowser.
http://search.cpan.org/~corion/WWW-Mechanize-Firefox-0.78/li...
Re: RoboBrowser: Your friendly neighborhood web scraper
#49I'm surprised nobody has mentioned WWW::Mechanize - classic perl library [1] or python port of it [2], which is much closer to RoboBrowser than selenium/phantomjs/horseman. [1] http://search.cpan.org/~ether/WWW-Mechanize-1.75/lib/WWW/Mec... [2] https://pypi.python.org/pypi/mechanize/
Mechanize is outdated and python 2 only. We tried it and switched to RoboBrowser.
Re: RoboBrowser: Your friendly neighborhood web scraper
#50Interesting for unprotected websites but it's easy to detect and to block: no valid js, no valid meta header, no valid cookie, suspect behavior... Selenium is a much "elaborated" solution, but still, can be detected most of the time. Disclosure: I'm DataDome co-founder. If you want to detect bad bots and scrapers on your website, don't hesitate to try out for free and to share your feedback with us https://datadome.c…