From 1f0b8be3756cc52f3c911735dbc15f4063e133d2 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 22 Apr 2020 10:48:56 -0700 Subject: init repo with work-in-progress script --- .gitignore | 21 ++++++++ Pipfile | 11 +++++ README.md | 37 ++++++++++++++ example.env | 4 ++ reupload.py | 157 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 230 insertions(+) create mode 100644 .gitignore create mode 100644 Pipfile create mode 100644 README.md create mode 100644 example.env create mode 100755 reupload.py diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..81a4762 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +*.o +*.a +*.pyc +#*# +*~ +*.swp +.* +*.tmp +*.old +*.profile +*.bkp +*.bak +[Tt]humbs.db +*.DS_Store +build/ +_build/ +src/build/ +*.log + +# Don't ignore this file itself +!.gitignore diff --git a/Pipfile b/Pipfile new file mode 100644 index 0000000..219b717 --- /dev/null +++ b/Pipfile @@ -0,0 +1,11 @@ +[[source]] +url = "https://pypi.python.org/simple" +verify_ssl = true +name = "pypi" + +[packages] + +[dev-packages] + +[requires] +python_version = "3.7" diff --git a/README.md b/README.md new file mode 100644 index 0000000..7ba167d --- /dev/null +++ b/README.md @@ -0,0 +1,37 @@ + +Want to download all ELS instagram photos, with at least date metadata, then +re-upload to wiki.mako.cc (or some other location). + +## Experimentation + +Using `pipenv` to generate a python virtualenv: + + pipenv shell + pip install instaloader requests + +Then: + + instaloader profile --no-compress-json extraordinaryleastsquares + # "Warning: Use --login to download HD version of profile pictures" + +In the future: + + instaloader --fast-update --no-compress-json extraordinaryleastsquares + +For mediawiki API, docs describe using requests: + +Metadata for items: + + filename: CEQD__