Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get the original start_url in scrapy

req = response.request
req_headers = req.__dict__['headers']
referer_url = req_headers['Referer'].decode('utf-8')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #original #scrapy
ADD COMMENT
Topic
Name
6+4 =