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

[instagram] Add support for hashtags (InstagramTagExtractor) #202

Merged
merged 1 commit into from
Mar 24, 2019
Merged

[instagram] Add support for hashtags (InstagramTagExtractor) #202

merged 1 commit into from
Mar 24, 2019

Conversation

iamleot
Copy link
Contributor

@iamleot iamleot commented Mar 24, 2019

Add support for hashtags (TagPage-s), i.e. explore/tags/ URLs.

This also introduce a get_metadata() method in order to append
possible further metadata per-(sub)extractor.

Refactor and generalize _extract_profilepage() to _extract_page()
in order to be reused by _extract_profilepage() and _extract_tagpage()
simply by passing the type of page (ProfilePage' or TagPage') and picking up
the respective fields in shared data.

@mikf
Copy link
Owner

mikf commented Mar 24, 2019

Nice. Thank you.

According to flake8 the dictionary values in lines 98-102 and 105-109 are over-indented:

instagram.py:98:21: E126 continuation line over-indented for hanging indent
instagram.py:105:21: E126 continuation line over-indented for hanging indent

Some minor detail, but the indentation there should only be 4 spaces, not 8.

Add support for hashtags (TagPage-s), i.e. explore/tags/<tag> URLs.

This also introduce a get_metadata() method in order to append
possible further metadata per-(sub)extractor.

Refactor and generalize _extract_profilepage() to _extract_page()
in order to be reused by _extract_profilepage() and _extract_tagpage()
simply by passing the type of page (`ProfilePage' or `TagPage') and picking up
the respective fields in shared data.
@iamleot
Copy link
Contributor Author

iamleot commented Mar 24, 2019 via email

@mikf mikf merged commit 790b133 into mikf:master Mar 24, 2019
@iamleot
Copy link
Contributor Author

iamleot commented Mar 24, 2019 via email

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.

None yet

2 participants