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

Add image collection #19

Open
sjacks26 opened this issue Jan 30, 2018 · 2 comments
Open

Add image collection #19

sjacks26 opened this issue Jan 30, 2018 · 2 comments
Assignees

Comments

@sjacks26
Copy link
Contributor

Add image collection feature for Twitter collections.

@sjacks26
Copy link
Contributor Author

Branch stack-vars-media adds two new nested objects to stack_vars : "media" and "media_counts".

  • Add code to the processor to look for URLs in tweet['stack_vars']['media'] and save any found URLs using requests.
  • Filepath should be stack/data/{project name}/twitter/media/{tweet id}.{file type}
  • Add nested object to stack_vars with file path?

@sjacks26
Copy link
Contributor Author

Implemented in https://github.com/bitslabsyr/stack/tree/get_media.
Still need to test: what happens if getmedia.py crashes mid-download and is restarted? It should re-download the file from scratch, but will it cause any problems?

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

No branches or pull requests

2 participants