Scraping FREE PROXY LIST in 1 LINE OF PYTHON CODE within a SCRAPY Shell

Published: 18 June 2020
on channel: Monkey see, monkey do
1,820
33

Hey what's up guys, Code Monkey KIng's here. In this video we gonna write the only single line of python code in order to scrape elite proxies supporting HTTPS from free-proxy-list.net

Just paste the below line into your SCRAPY Shell

import csv; open('proxies.csv', 'w').write('IP Address,Port,Code,Country,Anonymity,Google,Https,Last Checked\n'); (fetch('https://free-proxy-list.net/'), [csv.writer(open('proxies.csv', 'a')).writerow(row.css('td::text').getall()) for row in response.css('table').css('tr') if len(row.css('td')) and row.css('td::text').getall()[4] == 'elite proxy' and row.css('td::text').getall()[6] == 'yes'])

You should obtain "proxies.csv" file in the current working directory