Город МОСКОВСКИЙ
00:06:12

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

Аватар
PHP и тестирование
Просмотры:
26
Дата загрузки:
01.12.2023 01:12
Длительность:
00:06:12
Категория:
Лайфстайл

Описание

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

Рекомендуемые видео