К
Size: a a a
МС
A
A
AR
МС
A
location = response.xpath("//dt[text()='Address']/..']
address = location.xpath(".//dt[text()='Phone Number']/preceding::dd/text()").getall()
A
AR
A
A
A
scraper = cloudscraper.create_scraper()
scraper.get(url, proxies=proxies).text
AR
AR
A
A
from scrapy.http import HtmlResponseно теперь error: `self.logger.info(f'Profile not exists: {response.url}')
import cloudscraper
class MtestMiddleware(object):
def process_request(self, request, spider):
# only process tagged request or delete this if you want all
scraper = cloudscraper.create_scraper() # returns a CloudScraper instance
proxies = {'http': f'45.136.228.201:80', 'https': f'45.136.228.201:80'}
r = scraper.get(request.url, proxies=proxies).text
response = HtmlResponse(url=request.url, body=r, encoding='utf-8')
return response
AR