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

crawler uuid #15

Merged
merged 1 commit into from
Jul 21, 2021
Merged

crawler uuid #15

merged 1 commit into from
Jul 21, 2021

Conversation

geoheelias
Copy link
Contributor

just a uuid in a header, has no effect on anything in itself (so safe to merge whenever) - but now we can look for that, and puzzle it together with the request ip in the indexer to group ids for our crawler

@geoheelias geoheelias requested a review from puhoy July 19, 2021 11:07
@geoheelias geoheelias self-assigned this Jul 19, 2021
@@ -32,7 +32,7 @@ def __init__(self, base_url, path, state, api_key=None, user_agent=None, extra_h
status_forcelist=[429, 500, 502, 503, 504])
self.requests.mount("https://", HTTPAdapter(max_retries=retries))
if user_agent is not None:
self.requests.headers.update({"user-agent": user_agent})
self.requests.headers.update({"User-Agent": user_agent})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it doesnt matter, since headers are case-insensitive, but it SHOULD look like this =P

@geoheelias geoheelias changed the title general refactoring and to fit to new block dict from indexer crawler uuid Jul 19, 2021
@puhoy puhoy merged commit b5f6404 into master Jul 21, 2021
@puhoy puhoy deleted the feature/crawler_uuid branch July 21, 2021 22:09
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

Successfully merging this pull request may close these issues.

3 participants