Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

add two attribute: response.request_urls, response.redirect_urls#699

Open
laoyuan wants to merge 1 commit intobinux:masterfrom
laoyuan:master
Open

add two attribute: response.request_urls, response.redirect_urls#699
laoyuan wants to merge 1 commit intobinux:masterfrom
laoyuan:master

Conversation

@laoyuan
Copy link
Copy Markdown

@laoyuan laoyuan commented May 12, 2017

when fetch_type="js", response.request_urls contains url list of all resources, response.redirect_urls contains url list of all redirects.

Comment thread pyspider/libs/response.py
headers=CaseInsensitiveDict(r.get('headers', {})),
content=r.get('content', ''),
redirect_urls=r.get('redirect_urls', []),
request_urls=r.get('request_urls', []),
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better called resources

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants