![]() |
|
[Python] Simple Proxy Scraper. - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118) +---- Thread: [Python] Simple Proxy Scraper. (/showthread.php?tid=5608560) |
Simple Proxy Scraper. - Null - Apr 25, 2017 Hey, I have been messing around with selenium and i made a really simple proxy scraper (credits to Piero-Bird) that will scrape off gatherproxy.com you may need to change the chrome driver's path. (get it from here: https://chromedriver.storage.googleapis.com/index.html?path=2.29/ ) Here is the source code: The program basically scrapes off gather proxies and export the proxies in a textfile in a IP:Port format (in the same directory of the script) here is the original tutorial by Piero-Bird * - LemonTea - Apr 25, 2017 Nice. Very simple and cool Try using Phantomjs to make it a background process too! * - SIM-1866423 - Apr 26, 2017 Try this, PHP Code PHP Code * - lmorra - Apr 26, 2017 Selenium always works but it's really slow. Use the requests library and XPATHs, it's a lot faster. * - Sapience - Apr 26, 2017 (Apr 26, 2017 12:28 AM)Mnemosyne Wrote: Try this, Really good simple proxy scraper, nice work! Personally I prefer having a file output rather than just putting the result in a terminal, so I took your code and "improved" it a bit: It's still compact, while having a (imo) really useful feature. * - ᏙictorҮ - Apr 26, 2017 I love Python and great simple code :") |