Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Error // Start and Stop Time for Requests #46

Open
Ether8 opened this issue Jul 3, 2018 · 0 comments
Open

Proxy Error // Start and Stop Time for Requests #46

Ether8 opened this issue Jul 3, 2018 · 0 comments

Comments

@Ether8
Copy link

Ether8 commented Jul 3, 2018

When I attempt to request the proxy I get a "KeyError: 'proxy'". Previously, I was able to get the IP address prior to using the proxies. Is there anyway to to get the proxy address that is used.

   def parse_item(self, response):
    	item = {}
    	item['url'] = response.url
    	item['download_latency'] = download_latency = response.request.meta['download_latency']
    	**item['proxy'] = response.request.meta['proxy']**

Separate question from the previous, I was wondering if there was any way to get the start and stop time for a request. I'm trying to get a better understanding of concurrent_requests and how best to maximize request / second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant