commit
84e8126d4f
7 changed files with 3917 additions and 0 deletions
-
1.gitignore
-
7Readme.md
-
2869example_tumblr_API_output.txt
-
59pinboard_tag_import.py
-
802poetry.lock
-
20pyproject.toml
-
159tumblr_tag_import.py
@ -0,0 +1 @@ |
|||
personal_token.txt |
@ -0,0 +1,7 @@ |
|||
|
|||
WIP/hacky scripts for importing Tumblr to are.na |
|||
|
|||
|
|||
Working curl request |
|||
|
|||
`curl -d "access_token=[token]&content=hello from curl" https://api.are.na/v2/channels/automation_tests/blocks` |
2869
example_tumblr_API_output.txt
File diff suppressed because it is too large
View File
File diff suppressed because it is too large
View File
@ -0,0 +1,59 @@ |
|||
# %% |
|||
#from arena import Arena |
|||
from dotenv import load_dotenv |
|||
load_dotenv() |
|||
|
|||
import os |
|||
import datetime |
|||
import requests |
|||
from bs4 import BeautifulSoup |
|||
import pinboard |
|||
from markdownify import markdownify |
|||
|
|||
|
|||
#%% |
|||
now= datetime.datetime.now() |
|||
arena_queue = [] |
|||
timestamp = now.strftime('%Y.%m.%d-%H:%M') |
|||
|
|||
# %% |
|||
pins = pinboard.Pinboard(os.environ['PINBOARD_TOKEN']) |
|||
|
|||
# %% |
|||
|
|||
tagged_pins = pins.posts.all(tag=["book"]) |
|||
|
|||
# %% |
|||
|
|||
for pin in tagged_pins: |
|||
print(pin.url) |
|||
|
|||
# pin.description, pin.extended, pin.time |
|||
|
|||
# %% |
|||
|
|||
# def import_metadata(post): |
|||
# date = post['date'] |
|||
# link = post['post_url'] |
|||
# t = post['type'] |
|||
# import_info = f'\n------------\n' \ |
|||
# f'Imported from Tumblr on: {timestamp} \n' \ |
|||
# f'Originally posted as a {t} on {date} \n' \ |
|||
# f'{link}' |
|||
# return import_info |
|||
|
|||
|
|||
#%% |
|||
# Are.na posting |
|||
|
|||
# url = "https://api.are.na/v2/channels/automation_inbox/blocks" |
|||
|
|||
# arena_queue.reverse() |
|||
|
|||
# print('Posting ' + str(len(arena_queue)) + ' blocks') |
|||
|
|||
# for block in arena_queue: |
|||
# block['access_token'] = os.environ['ARENA_TOKEN'] |
|||
# x = requests.post(url, data=block) |
|||
|
|||
# print('Done') |
@ -0,0 +1,802 @@ |
|||
[[package]] |
|||
name = "appnope" |
|||
version = "0.1.2" |
|||
description = "Disable App Nap on macOS >= 10.9" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "arena" |
|||
version = "0.0.5" |
|||
description = "python interface to the are.na api" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.dependencies] |
|||
requests = "*" |
|||
|
|||
[[package]] |
|||
name = "backcall" |
|||
version = "0.2.0" |
|||
description = "Specifications for callback functions passed in to an API" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "beautifulsoup4" |
|||
version = "4.9.3" |
|||
description = "Screen-scraping library" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.dependencies] |
|||
soupsieve = {version = ">1.2", markers = "python_version >= \"3.0\""} |
|||
|
|||
[package.extras] |
|||
html5lib = ["html5lib"] |
|||
lxml = ["lxml"] |
|||
|
|||
[[package]] |
|||
name = "certifi" |
|||
version = "2020.12.5" |
|||
description = "Python package for providing Mozilla's CA Bundle." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "cffi" |
|||
version = "1.14.5" |
|||
description = "Foreign Function Interface for Python calling C code." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.dependencies] |
|||
pycparser = "*" |
|||
|
|||
[[package]] |
|||
name = "chardet" |
|||
version = "4.0.0" |
|||
description = "Universal encoding detector for Python 2 and 3" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" |
|||
|
|||
[[package]] |
|||
name = "colorama" |
|||
version = "0.4.4" |
|||
description = "Cross-platform colored terminal text." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" |
|||
|
|||
[[package]] |
|||
name = "decorator" |
|||
version = "4.4.2" |
|||
description = "Decorators for Humans" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.6, !=3.0.*, !=3.1.*" |
|||
|
|||
[[package]] |
|||
name = "dotenv" |
|||
version = "0.0.5" |
|||
description = "Handle .env files" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "future" |
|||
version = "0.18.2" |
|||
description = "Clean single-source support for Python 3 and 2" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.6, !=3.0.*, !=3.1.*, !=3.2.*" |
|||
|
|||
[[package]] |
|||
name = "idna" |
|||
version = "2.10" |
|||
description = "Internationalized Domain Names in Applications (IDNA)" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[[package]] |
|||
name = "ipykernel" |
|||
version = "5.5.3" |
|||
description = "IPython Kernel for Jupyter" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.5" |
|||
|
|||
[package.dependencies] |
|||
appnope = {version = "*", markers = "platform_system == \"Darwin\""} |
|||
ipython = ">=5.0.0" |
|||
jupyter-client = "*" |
|||
tornado = ">=4.2" |
|||
traitlets = ">=4.1.0" |
|||
|
|||
[package.extras] |
|||
test = ["pytest (!=5.3.4)", "pytest-cov", "flaky", "nose", "jedi (<=0.17.2)"] |
|||
|
|||
[[package]] |
|||
name = "ipython" |
|||
version = "7.21.0" |
|||
description = "IPython: Productive Interactive Computing" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.7" |
|||
|
|||
[package.dependencies] |
|||
appnope = {version = "*", markers = "sys_platform == \"darwin\""} |
|||
backcall = "*" |
|||
colorama = {version = "*", markers = "sys_platform == \"win32\""} |
|||
decorator = "*" |
|||
jedi = ">=0.16" |
|||
pexpect = {version = ">4.3", markers = "sys_platform != \"win32\""} |
|||
pickleshare = "*" |
|||
prompt-toolkit = ">=2.0.0,<3.0.0 || >3.0.0,<3.0.1 || >3.0.1,<3.1.0" |
|||
pygments = "*" |
|||
traitlets = ">=4.2" |
|||
|
|||
[package.extras] |
|||
all = ["Sphinx (>=1.3)", "ipykernel", "ipyparallel", "ipywidgets", "nbconvert", "nbformat", "nose (>=0.10.1)", "notebook", "numpy (>=1.14)", "pygments", "qtconsole", "requests", "testpath"] |
|||
doc = ["Sphinx (>=1.3)"] |
|||
kernel = ["ipykernel"] |
|||
nbconvert = ["nbconvert"] |
|||
nbformat = ["nbformat"] |
|||
notebook = ["notebook", "ipywidgets"] |
|||
parallel = ["ipyparallel"] |
|||
qtconsole = ["qtconsole"] |
|||
test = ["nose (>=0.10.1)", "requests", "testpath", "pygments", "nbformat", "ipykernel", "numpy (>=1.14)"] |
|||
|
|||
[[package]] |
|||
name = "ipython-genutils" |
|||
version = "0.2.0" |
|||
description = "Vestigial utilities from IPython" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "jedi" |
|||
version = "0.18.0" |
|||
description = "An autocompletion tool for Python that can be used for text editors." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6" |
|||
|
|||
[package.dependencies] |
|||
parso = ">=0.8.0,<0.9.0" |
|||
|
|||
[package.extras] |
|||
qa = ["flake8 (==3.8.3)", "mypy (==0.782)"] |
|||
testing = ["Django (<3.1)", "colorama", "docopt", "pytest (<6.0.0)"] |
|||
|
|||
[[package]] |
|||
name = "jupyter-client" |
|||
version = "6.1.12" |
|||
description = "Jupyter protocol implementation and client libraries" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.5" |
|||
|
|||
[package.dependencies] |
|||
jupyter-core = ">=4.6.0" |
|||
python-dateutil = ">=2.1" |
|||
pyzmq = ">=13" |
|||
tornado = ">=4.1" |
|||
traitlets = "*" |
|||
|
|||
[package.extras] |
|||
doc = ["sphinx (>=1.3.6)", "sphinx-rtd-theme", "sphinxcontrib-github-alt"] |
|||
test = ["async-generator", "ipykernel", "ipython", "mock", "pytest-asyncio", "pytest-timeout", "pytest", "jedi (<0.18)"] |
|||
|
|||
[[package]] |
|||
name = "jupyter-core" |
|||
version = "4.7.1" |
|||
description = "Jupyter core package. A base package on which Jupyter projects rely." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6" |
|||
|
|||
[package.dependencies] |
|||
pywin32 = {version = ">=1.0", markers = "sys_platform == \"win32\""} |
|||
traitlets = "*" |
|||
|
|||
[[package]] |
|||
name = "lxml" |
|||
version = "4.6.2" |
|||
description = "Powerful and Pythonic XML processing library combining libxml2/libxslt with the ElementTree API." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, != 3.4.*" |
|||
|
|||
[package.extras] |
|||
cssselect = ["cssselect (>=0.7)"] |
|||
html5 = ["html5lib"] |
|||
htmlsoup = ["beautifulsoup4"] |
|||
source = ["Cython (>=0.29.7)"] |
|||
|
|||
[[package]] |
|||
name = "markdownify" |
|||
version = "0.6.5" |
|||
description = "Convert HTML to markdown." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.dependencies] |
|||
beautifulsoup4 = ">=4.9,<5" |
|||
six = ">=1.15,<2" |
|||
|
|||
[[package]] |
|||
name = "oauthlib" |
|||
version = "3.1.0" |
|||
description = "A generic, spec-compliant, thorough implementation of the OAuth request-signing logic" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[package.extras] |
|||
rsa = ["cryptography"] |
|||
signals = ["blinker"] |
|||
signedtoken = ["cryptography", "pyjwt (>=1.0.0)"] |
|||
|
|||
[[package]] |
|||
name = "parso" |
|||
version = "0.8.1" |
|||
description = "A Python Parser" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6" |
|||
|
|||
[package.extras] |
|||
qa = ["flake8 (==3.8.3)", "mypy (==0.782)"] |
|||
testing = ["docopt", "pytest (<6.0.0)"] |
|||
|
|||
[[package]] |
|||
name = "pexpect" |
|||
version = "4.8.0" |
|||
description = "Pexpect allows easy control of interactive console applications." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.dependencies] |
|||
ptyprocess = ">=0.5" |
|||
|
|||
[[package]] |
|||
name = "pickleshare" |
|||
version = "0.7.5" |
|||
description = "Tiny 'shelve'-like database with concurrency support" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "pinboard" |
|||
version = "2.1.8" |
|||
description = "A Python wrapper for Pinboard.in" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "prompt-toolkit" |
|||
version = "3.0.17" |
|||
description = "Library for building powerful interactive command lines in Python" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6.1" |
|||
|
|||
[package.dependencies] |
|||
wcwidth = "*" |
|||
|
|||
[[package]] |
|||
name = "ptyprocess" |
|||
version = "0.7.0" |
|||
description = "Run a subprocess in a pseudo terminal" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "py" |
|||
version = "1.10.0" |
|||
description = "library with cross-python path, ini-parsing, io, code, log facilities" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[[package]] |
|||
name = "pycparser" |
|||
version = "2.20" |
|||
description = "C parser in Python" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[[package]] |
|||
name = "pygments" |
|||
version = "2.8.1" |
|||
description = "Pygments is a syntax highlighting package written in Python." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.5" |
|||
|
|||
[[package]] |
|||
name = "python-dateutil" |
|||
version = "2.8.1" |
|||
description = "Extensions to the standard Python datetime module" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" |
|||
|
|||
[package.dependencies] |
|||
six = ">=1.5" |
|||
|
|||
[[package]] |
|||
name = "python-dotenv" |
|||
version = "0.15.0" |
|||
description = "Add .env support to your django/flask apps in development and deployments" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[package.extras] |
|||
cli = ["click (>=5.0)"] |
|||
|
|||
[[package]] |
|||
name = "pytumblr" |
|||
version = "0.1.0" |
|||
description = "A Python API v2 wrapper for Tumblr" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[package.dependencies] |
|||
future = "*" |
|||
requests-oauthlib = "*" |
|||
|
|||
[[package]] |
|||
name = "pywin32" |
|||
version = "300" |
|||
description = "Python for Window Extensions" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[[package]] |
|||
name = "pyzmq" |
|||
version = "22.0.3" |
|||
description = "Python bindings for 0MQ" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6" |
|||
|
|||
[package.dependencies] |
|||
cffi = {version = "*", markers = "implementation_name == \"pypy\""} |
|||
py = {version = "*", markers = "implementation_name == \"pypy\""} |
|||
|
|||
[[package]] |
|||
name = "requests" |
|||
version = "2.25.1" |
|||
description = "Python HTTP for Humans." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" |
|||
|
|||
[package.dependencies] |
|||
certifi = ">=2017.4.17" |
|||
chardet = ">=3.0.2,<5" |
|||
idna = ">=2.5,<3" |
|||
urllib3 = ">=1.21.1,<1.27" |
|||
|
|||
[package.extras] |
|||
security = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)"] |
|||
socks = ["PySocks (>=1.5.6,!=1.5.7)", "win-inet-pton"] |
|||
|
|||
[[package]] |
|||
name = "requests-oauthlib" |
|||
version = "1.3.0" |
|||
description = "OAuthlib authentication support for Requests." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" |
|||
|
|||
[package.dependencies] |
|||
oauthlib = ">=3.0.0" |
|||
requests = ">=2.0.0" |
|||
|
|||
[package.extras] |
|||
rsa = ["oauthlib[signedtoken] (>=3.0.0)"] |
|||
|
|||
[[package]] |
|||
name = "six" |
|||
version = "1.15.0" |
|||
description = "Python 2 and 3 compatibility utilities" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" |
|||
|
|||
[[package]] |
|||
name = "soupsieve" |
|||
version = "2.2" |
|||
description = "A modern CSS selector implementation for Beautiful Soup." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.6" |
|||
|
|||
[[package]] |
|||
name = "tornado" |
|||
version = "6.1" |
|||
description = "Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">= 3.5" |
|||
|
|||
[[package]] |
|||
name = "traitlets" |
|||
version = "5.0.5" |
|||
description = "Traitlets Python configuration system" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=3.7" |
|||
|
|||
[package.dependencies] |
|||
ipython-genutils = "*" |
|||
|
|||
[package.extras] |
|||
test = ["pytest"] |
|||
|
|||
[[package]] |
|||
name = "urllib3" |
|||
version = "1.26.4" |
|||
description = "HTTP library with thread-safe connection pooling, file post, and more." |
|||
category = "main" |
|||
optional = false |
|||
python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4" |
|||
|
|||
[package.extras] |
|||
secure = ["pyOpenSSL (>=0.14)", "cryptography (>=1.3.4)", "idna (>=2.0.0)", "certifi", "ipaddress"] |
|||
socks = ["PySocks (>=1.5.6,!=1.5.7,<2.0)"] |
|||
brotli = ["brotlipy (>=0.6.0)"] |
|||
|
|||
[[package]] |
|||
name = "wcwidth" |
|||
version = "0.2.5" |
|||
description = "Measures the displayed width of unicode strings in a terminal" |
|||
category = "main" |
|||
optional = false |
|||
python-versions = "*" |
|||
|
|||
[metadata] |
|||
lock-version = "1.1" |
|||
python-versions = "^3.8" |
|||
content-hash = "0052a1839fa98dde2cfc267a5a83935fa178fe9fb1ddb3299b1d05f72e223211" |
|||
|
|||
[metadata.files] |
|||
appnope = [ |
|||
{file = "appnope-0.1.2-py2.py3-none-any.whl", hash = "sha256:93aa393e9d6c54c5cd570ccadd8edad61ea0c4b9ea7a01409020c9aa019eb442"}, |
|||
{file = "appnope-0.1.2.tar.gz", hash = "sha256:dd83cd4b5b460958838f6eb3000c660b1f9caf2a5b1de4264e941512f603258a"}, |
|||
] |
|||
arena = [ |
|||
{file = "arena-0.0.5.tar.gz", hash = "sha256:adc2f7d75a6c830ba8f852987c02dd4b4b928cabefbea190657e06f9eb48597f"}, |
|||
] |
|||
backcall = [ |
|||
{file = "backcall-0.2.0-py2.py3-none-any.whl", hash = "sha256:fbbce6a29f263178a1f7915c1940bde0ec2b2a967566fe1c65c1dfb7422bd255"}, |
|||
{file = "backcall-0.2.0.tar.gz", hash = "sha256:5cbdbf27be5e7cfadb448baf0aa95508f91f2bbc6c6437cd9cd06e2a4c215e1e"}, |
|||
] |
|||
beautifulsoup4 = [ |
|||
{file = "beautifulsoup4-4.9.3-py2-none-any.whl", hash = "sha256:4c98143716ef1cb40bf7f39a8e3eec8f8b009509e74904ba3a7b315431577e35"}, |
|||
{file = "beautifulsoup4-4.9.3-py3-none-any.whl", hash = "sha256:fff47e031e34ec82bf17e00da8f592fe7de69aeea38be00523c04623c04fb666"}, |
|||
{file = "beautifulsoup4-4.9.3.tar.gz", hash = "sha256:84729e322ad1d5b4d25f805bfa05b902dd96450f43842c4e99067d5e1369eb25"}, |
|||
] |
|||
certifi = [ |
|||
{file = "certifi-2020.12.5-py2.py3-none-any.whl", hash = "sha256:719a74fb9e33b9bd44cc7f3a8d94bc35e4049deebe19ba7d8e108280cfd59830"}, |
|||
{file = "certifi-2020.12.5.tar.gz", hash = "sha256:1a4995114262bffbc2413b159f2a1a480c969de6e6eb13ee966d470af86af59c"}, |
|||
] |
|||
cffi = [ |
|||
{file = "cffi-1.14.5-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:bb89f306e5da99f4d922728ddcd6f7fcebb3241fc40edebcb7284d7514741991"}, |
|||
{file = "cffi-1.14.5-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:34eff4b97f3d982fb93e2831e6750127d1355a923ebaeeb565407b3d2f8d41a1"}, |
|||
{file = "cffi-1.14.5-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:99cd03ae7988a93dd00bcd9d0b75e1f6c426063d6f03d2f90b89e29b25b82dfa"}, |
|||
{file = "cffi-1.14.5-cp27-cp27m-win32.whl", hash = "sha256:65fa59693c62cf06e45ddbb822165394a288edce9e276647f0046e1ec26920f3"}, |
|||
{file = "cffi-1.14.5-cp27-cp27m-win_amd64.whl", hash = "sha256:51182f8927c5af975fece87b1b369f722c570fe169f9880764b1ee3bca8347b5"}, |
|||
{file = "cffi-1.14.5-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:43e0b9d9e2c9e5d152946b9c5fe062c151614b262fda2e7b201204de0b99e482"}, |
|||
{file = "cffi-1.14.5-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:cbde590d4faaa07c72bf979734738f328d239913ba3e043b1e98fe9a39f8b2b6"}, |
|||
{file = "cffi-1.14.5-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:5de7970188bb46b7bf9858eb6890aad302577a5f6f75091fd7cdd3ef13ef3045"}, |
|||
{file = "cffi-1.14.5-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:a465da611f6fa124963b91bf432d960a555563efe4ed1cc403ba5077b15370aa"}, |
|||
{file = "cffi-1.14.5-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:d42b11d692e11b6634f7613ad8df5d6d5f8875f5d48939520d351007b3c13406"}, |
|||
{file = "cffi-1.14.5-cp35-cp35m-win32.whl", hash = "sha256:72d8d3ef52c208ee1c7b2e341f7d71c6fd3157138abf1a95166e6165dd5d4369"}, |
|||
{file = "cffi-1.14.5-cp35-cp35m-win_amd64.whl", hash = "sha256:29314480e958fd8aab22e4a58b355b629c59bf5f2ac2492b61e3dc06d8c7a315"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:3d3dd4c9e559eb172ecf00a2a7517e97d1e96de2a5e610bd9b68cea3925b4892"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:48e1c69bbacfc3d932221851b39d49e81567a4d4aac3b21258d9c24578280058"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:69e395c24fc60aad6bb4fa7e583698ea6cc684648e1ffb7fe85e3c1ca131a7d5"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:9e93e79c2551ff263400e1e4be085a1210e12073a31c2011dbbda14bda0c6132"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-win32.whl", hash = "sha256:58e3f59d583d413809d60779492342801d6e82fefb89c86a38e040c16883be53"}, |
|||
{file = "cffi-1.14.5-cp36-cp36m-win_amd64.whl", hash = "sha256:005a36f41773e148deac64b08f233873a4d0c18b053d37da83f6af4d9087b813"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:2894f2df484ff56d717bead0a5c2abb6b9d2bf26d6960c4604d5c48bbc30ee73"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:0857f0ae312d855239a55c81ef453ee8fd24136eaba8e87a2eceba644c0d4c06"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:cd2868886d547469123fadc46eac7ea5253ea7fcb139f12e1dfc2bbd406427d1"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:35f27e6eb43380fa080dccf676dece30bef72e4a67617ffda586641cd4508d49"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-win32.whl", hash = "sha256:9ff227395193126d82e60319a673a037d5de84633f11279e336f9c0f189ecc62"}, |
|||
{file = "cffi-1.14.5-cp37-cp37m-win_amd64.whl", hash = "sha256:9cf8022fb8d07a97c178b02327b284521c7708d7c71a9c9c355c178ac4bbd3d4"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8b198cec6c72df5289c05b05b8b0969819783f9418e0409865dac47288d2a053"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-manylinux1_i686.whl", hash = "sha256:ad17025d226ee5beec591b52800c11680fca3df50b8b29fe51d882576e039ee0"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:6c97d7350133666fbb5cf4abdc1178c812cb205dc6f41d174a7b0f18fb93337e"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:8ae6299f6c68de06f136f1f9e69458eae58f1dacf10af5c17353eae03aa0d827"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-win32.whl", hash = "sha256:b85eb46a81787c50650f2392b9b4ef23e1f126313b9e0e9013b35c15e4288e2e"}, |
|||
{file = "cffi-1.14.5-cp38-cp38-win_amd64.whl", hash = "sha256:1f436816fc868b098b0d63b8920de7d208c90a67212546d02f84fe78a9c26396"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:1071534bbbf8cbb31b498d5d9db0f274f2f7a865adca4ae429e147ba40f73dea"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-manylinux1_i686.whl", hash = "sha256:9de2e279153a443c656f2defd67769e6d1e4163952b3c622dcea5b08a6405322"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:6e4714cc64f474e4d6e37cfff31a814b509a35cb17de4fb1999907575684479c"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:158d0d15119b4b7ff6b926536763dc0714313aa59e320ddf787502c70c4d4bee"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-win32.whl", hash = "sha256:afb29c1ba2e5a3736f1c301d9d0abe3ec8b86957d04ddfa9d7a6a42b9367e396"}, |
|||
{file = "cffi-1.14.5-cp39-cp39-win_amd64.whl", hash = "sha256:f2d45f97ab6bb54753eab54fffe75aaf3de4ff2341c9daee1987ee1837636f1d"}, |
|||
{file = "cffi-1.14.5.tar.gz", hash = "sha256:fd78e5fee591709f32ef6edb9a015b4aa1a5022598e36227500c8f4e02328d9c"}, |
|||
] |
|||
chardet = [ |
|||
{file = "chardet-4.0.0-py2.py3-none-any.whl", hash = "sha256:f864054d66fd9118f2e67044ac8981a54775ec5b67aed0441892edb553d21da5"}, |
|||
{file = "chardet-4.0.0.tar.gz", hash = "sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa"}, |
|||
] |
|||
colorama = [ |
|||
{file = "colorama-0.4.4-py2.py3-none-any.whl", hash = "sha256:9f47eda37229f68eee03b24b9748937c7dc3868f906e8ba69fbcbdd3bc5dc3e2"}, |
|||
{file = "colorama-0.4.4.tar.gz", hash = "sha256:5941b2b48a20143d2267e95b1c2a7603ce057ee39fd88e7329b0c292aa16869b"}, |
|||
] |
|||
decorator = [ |
|||
{file = "decorator-4.4.2-py2.py3-none-any.whl", hash = "sha256:41fa54c2a0cc4ba648be4fd43cff00aedf5b9465c9bf18d64325bc225f08f760"}, |
|||
{file = "decorator-4.4.2.tar.gz", hash = "sha256:e3a62f0520172440ca0dcc823749319382e377f37f140a0b99ef45fecb84bfe7"}, |
|||
] |
|||
dotenv = [ |
|||
{file = "dotenv-0.0.5.tar.gz", hash = "sha256:b58d2ab3f83dbd4f8a362b21158a606bee87317a9444485566b3c8f0af847091"}, |
|||
] |
|||
future = [ |
|||
{file = "future-0.18.2.tar.gz", hash = "sha256:b1bead90b70cf6ec3f0710ae53a525360fa360d306a86583adc6bf83a4db537d"}, |
|||
] |
|||
idna = [ |
|||
{file = "idna-2.10-py2.py3-none-any.whl", hash = "sha256:b97d804b1e9b523befed77c48dacec60e6dcb0b5391d57af6a65a312a90648c0"}, |
|||
{file = "idna-2.10.tar.gz", hash = "sha256:b307872f855b18632ce0c21c5e45be78c0ea7ae4c15c828c20788b26921eb3f6"}, |
|||
] |
|||
ipykernel = [ |
|||
{file = "ipykernel-5.5.3-py3-none-any.whl", hash = "sha256:21abd584543759e49010975a4621603b3cf871b1039cb3879a14094717692614"}, |
|||
{file = "ipykernel-5.5.3.tar.gz", hash = "sha256:a682e4f7affd86d9ce9b699d21bcab6d5ec9fbb2bfcb194f2706973b252bc509"}, |
|||
] |
|||
ipython = [ |
|||
{file = "ipython-7.21.0-py3-none-any.whl", hash = "sha256:34207ffb2f653bced2bc8e3756c1db86e7d93e44ed049daae9814fed66d408ec"}, |
|||
{file = "ipython-7.21.0.tar.gz", hash = "sha256:04323f72d5b85b606330b6d7e2dc8d2683ad46c3905e955aa96ecc7a99388e70"}, |
|||
] |
|||
ipython-genutils = [ |
|||
{file = "ipython_genutils-0.2.0-py2.py3-none-any.whl", hash = "sha256:72dd37233799e619666c9f639a9da83c34013a73e8bbc79a7a6348d93c61fab8"}, |
|||
{file = "ipython_genutils-0.2.0.tar.gz", hash = "sha256:eb2e116e75ecef9d4d228fdc66af54269afa26ab4463042e33785b887c628ba8"}, |
|||
] |
|||
jedi = [ |
|||
{file = "jedi-0.18.0-py2.py3-none-any.whl", hash = "sha256:18456d83f65f400ab0c2d3319e48520420ef43b23a086fdc05dff34132f0fb93"}, |
|||
{file = "jedi-0.18.0.tar.gz", hash = "sha256:92550a404bad8afed881a137ec9a461fed49eca661414be45059329614ed0707"}, |
|||
] |
|||
jupyter-client = [ |
|||
{file = "jupyter_client-6.1.12-py3-none-any.whl", hash = "sha256:e053a2c44b6fa597feebe2b3ecb5eea3e03d1d91cc94351a52931ee1426aecfc"}, |
|||
{file = "jupyter_client-6.1.12.tar.gz", hash = "sha256:c4bca1d0846186ca8be97f4d2fa6d2bae889cce4892a167ffa1ba6bd1f73e782"}, |
|||
] |
|||
jupyter-core = [ |
|||
{file = "jupyter_core-4.7.1-py3-none-any.whl", hash = "sha256:8c6c0cac5c1b563622ad49321d5ec47017bd18b94facb381c6973a0486395f8e"}, |
|||
{file = "jupyter_core-4.7.1.tar.gz", hash = "sha256:79025cb3225efcd36847d0840f3fc672c0abd7afd0de83ba8a1d3837619122b4"}, |
|||
] |
|||
lxml = [ |
|||
{file = "lxml-4.6.2-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:a9d6bc8642e2c67db33f1247a77c53476f3a166e09067c0474facb045756087f"}, |
|||
{file = "lxml-4.6.2-cp27-cp27m-manylinux1_i686.whl", hash = "sha256:791394449e98243839fa822a637177dd42a95f4883ad3dec2a0ce6ac99fb0a9d"}, |
|||
{file = "lxml-4.6.2-cp27-cp27m-manylinux1_x86_64.whl", hash = "sha256:68a5d77e440df94011214b7db907ec8f19e439507a70c958f750c18d88f995d2"}, |
|||
{file = "lxml-4.6.2-cp27-cp27m-win32.whl", hash = "sha256:fc37870d6716b137e80d19241d0e2cff7a7643b925dfa49b4c8ebd1295eb506e"}, |
|||
{file = "lxml-4.6.2-cp27-cp27m-win_amd64.whl", hash = "sha256:69a63f83e88138ab7642d8f61418cf3180a4d8cd13995df87725cb8b893e950e"}, |
|||
{file = "lxml-4.6.2-cp27-cp27mu-manylinux1_i686.whl", hash = "sha256:42ebca24ba2a21065fb546f3e6bd0c58c3fe9ac298f3a320147029a4850f51a2"}, |
|||
{file = "lxml-4.6.2-cp27-cp27mu-manylinux1_x86_64.whl", hash = "sha256:f83d281bb2a6217cd806f4cf0ddded436790e66f393e124dfe9731f6b3fb9afe"}, |
|||
{file = "lxml-4.6.2-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:535f067002b0fd1a4e5296a8f1bf88193080ff992a195e66964ef2a6cfec5388"}, |
|||
{file = "lxml-4.6.2-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:366cb750140f221523fa062d641393092813b81e15d0e25d9f7c6025f910ee80"}, |
|||
{file = "lxml-4.6.2-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:97db258793d193c7b62d4e2586c6ed98d51086e93f9a3af2b2034af01450a74b"}, |
|||
{file = "lxml-4.6.2-cp35-cp35m-win32.whl", hash = "sha256:648914abafe67f11be7d93c1a546068f8eff3c5fa938e1f94509e4a5d682b2d8"}, |
|||
{file = "lxml-4.6.2-cp35-cp35m-win_amd64.whl", hash = "sha256:4e751e77006da34643ab782e4a5cc21ea7b755551db202bc4d3a423b307db780"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:681d75e1a38a69f1e64ab82fe4b1ed3fd758717bed735fb9aeaa124143f051af"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:127f76864468d6630e1b453d3ffbbd04b024c674f55cf0a30dc2595137892d37"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:4fb85c447e288df535b17ebdebf0ec1cf3a3f1a8eba7e79169f4f37af43c6b98"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:5be4a2e212bb6aa045e37f7d48e3e1e4b6fd259882ed5a00786f82e8c37ce77d"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-win32.whl", hash = "sha256:8c88b599e226994ad4db29d93bc149aa1aff3dc3a4355dd5757569ba78632bdf"}, |
|||
{file = "lxml-4.6.2-cp36-cp36m-win_amd64.whl", hash = "sha256:6e4183800f16f3679076dfa8abf2db3083919d7e30764a069fb66b2b9eff9939"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d8d3d4713f0c28bdc6c806a278d998546e8efc3498949e3ace6e117462ac0a5e"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:8246f30ca34dc712ab07e51dc34fea883c00b7ccb0e614651e49da2c49a30711"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:923963e989ffbceaa210ac37afc9b906acebe945d2723e9679b643513837b089"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:1471cee35eba321827d7d53d104e7b8c593ea3ad376aa2df89533ce8e1b24a01"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-win32.whl", hash = "sha256:2363c35637d2d9d6f26f60a208819e7eafc4305ce39dc1d5005eccc4593331c2"}, |
|||
{file = "lxml-4.6.2-cp37-cp37m-win_amd64.whl", hash = "sha256:f4822c0660c3754f1a41a655e37cb4dbbc9be3d35b125a37fab6f82d47674ebc"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0448576c148c129594d890265b1a83b9cd76fd1f0a6a04620753d9a6bcfd0a4d"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-manylinux1_i686.whl", hash = "sha256:60a20bfc3bd234d54d49c388950195d23a5583d4108e1a1d47c9eef8d8c042b3"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:2e5cc908fe43fe1aa299e58046ad66981131a66aea3129aac7770c37f590a644"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:50c348995b47b5a4e330362cf39fc503b4a43b14a91c34c83b955e1805c8e308"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-win32.whl", hash = "sha256:94d55bd03d8671686e3f012577d9caa5421a07286dd351dfef64791cf7c6c505"}, |
|||
{file = "lxml-4.6.2-cp38-cp38-win_amd64.whl", hash = "sha256:7a7669ff50f41225ca5d6ee0a1ec8413f3a0d8aa2b109f86d540887b7ec0d72a"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e0bfe9bb028974a481410432dbe1b182e8191d5d40382e5b8ff39cdd2e5c5931"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-manylinux1_i686.whl", hash = "sha256:6fd8d5903c2e53f49e99359b063df27fdf7acb89a52b6a12494208bf61345a03"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7e9eac1e526386df7c70ef253b792a0a12dd86d833b1d329e038c7a235dfceb5"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:7ee8af0b9f7de635c61cdd5b8534b76c52cd03536f29f51151b377f76e214a1a"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-win32.whl", hash = "sha256:2e6fd1b8acd005bd71e6c94f30c055594bbd0aa02ef51a22bbfa961ab63b2d75"}, |
|||
{file = "lxml-4.6.2-cp39-cp39-win_amd64.whl", hash = "sha256:535332fe9d00c3cd455bd3dd7d4bacab86e2d564bdf7606079160fa6251caacf"}, |
|||
{file = "lxml-4.6.2.tar.gz", hash = "sha256:cd11c7e8d21af997ee8079037fff88f16fda188a9776eb4b81c7e4c9c0a7d7fc"}, |
|||
] |
|||
markdownify = [ |
|||
{file = "markdownify-0.6.5-py3-none-any.whl", hash = "sha256:ee452328a06b9a34461773a5a0d78655960df3f5506514b219a11245e0031c9c"}, |
|||
{file = "markdownify-0.6.5.tar.gz", hash = "sha256:b76f8055d79c5abf96d8c218f836c565517abeffc510340975e095436b7ce96a"}, |
|||
] |
|||
oauthlib = [ |
|||
{file = "oauthlib-3.1.0-py2.py3-none-any.whl", hash = "sha256:df884cd6cbe20e32633f1db1072e9356f53638e4361bef4e8b03c9127c9328ea"}, |
|||
{file = "oauthlib-3.1.0.tar.gz", hash = "sha256:bee41cc35fcca6e988463cacc3bcb8a96224f470ca547e697b604cc697b2f889"}, |
|||
] |
|||
parso = [ |
|||
{file = "parso-0.8.1-py2.py3-none-any.whl", hash = "sha256:15b00182f472319383252c18d5913b69269590616c947747bc50bf4ac768f410"}, |
|||
{file = "parso-0.8.1.tar.gz", hash = "sha256:8519430ad07087d4c997fda3a7918f7cfa27cb58972a8c89c2a0295a1c940e9e"}, |
|||
] |
|||
pexpect = [ |
|||
{file = "pexpect-4.8.0-py2.py3-none-any.whl", hash = "sha256:0b48a55dcb3c05f3329815901ea4fc1537514d6ba867a152b581d69ae3710937"}, |
|||
{file = "pexpect-4.8.0.tar.gz", hash = "sha256:fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"}, |
|||
] |
|||
pickleshare = [ |
|||
{file = "pickleshare-0.7.5-py2.py3-none-any.whl", hash = "sha256:9649af414d74d4df115d5d718f82acb59c9d418196b7b4290ed47a12ce62df56"}, |
|||
{file = "pickleshare-0.7.5.tar.gz", hash = "sha256:87683d47965c1da65cdacaf31c8441d12b8044cdec9aca500cd78fc2c683afca"}, |
|||
] |
|||
pinboard = [ |
|||
{file = "pinboard-2.1.8-py2.py3-none-any.whl", hash = "sha256:82d87bf08e0c00faa339568b0053b49d3afb09f47e389b346389236f4de12f42"}, |
|||
] |
|||
prompt-toolkit = [ |
|||
{file = "prompt_toolkit-3.0.17-py3-none-any.whl", hash = "sha256:4cea7d09e46723885cb8bc54678175453e5071e9449821dce6f017b1d1fbfc1a"}, |
|||
{file = "prompt_toolkit-3.0.17.tar.gz", hash = "sha256:9397a7162cf45449147ad6042fa37983a081b8a73363a5253dd4072666333137"}, |
|||
] |
|||
ptyprocess = [ |
|||
{file = "ptyprocess-0.7.0-py2.py3-none-any.whl", hash = "sha256:4b41f3967fce3af57cc7e94b888626c18bf37a083e3651ca8feeb66d492fef35"}, |
|||
{file = "ptyprocess-0.7.0.tar.gz", hash = "sha256:5c5d0a3b48ceee0b48485e0c26037c0acd7d29765ca3fbb5cb3831d347423220"}, |
|||
] |
|||
py = [ |
|||
{file = "py-1.10.0-py2.py3-none-any.whl", hash = "sha256:3b80836aa6d1feeaa108e046da6423ab8f6ceda6468545ae8d02d9d58d18818a"}, |
|||
{file = "py-1.10.0.tar.gz", hash = "sha256:21b81bda15b66ef5e1a777a21c4dcd9c20ad3efd0b3f817e7a809035269e1bd3"}, |
|||
] |
|||
pycparser = [ |
|||
{file = "pycparser-2.20-py2.py3-none-any.whl", hash = "sha256:7582ad22678f0fcd81102833f60ef8d0e57288b6b5fb00323d101be910e35705"}, |
|||
{file = "pycparser-2.20.tar.gz", hash = "sha256:2d475327684562c3a96cc71adf7dc8c4f0565175cf86b6d7a404ff4c771f15f0"}, |
|||
] |
|||
pygments = [ |
|||
{file = "Pygments-2.8.1-py3-none-any.whl", hash = "sha256:534ef71d539ae97d4c3a4cf7d6f110f214b0e687e92f9cb9d2a3b0d3101289c8"}, |
|||
{file = "Pygments-2.8.1.tar.gz", hash = "sha256:2656e1a6edcdabf4275f9a3640db59fd5de107d88e8663c5d4e9a0fa62f77f94"}, |
|||
] |
|||
python-dateutil = [ |
|||
{file = "python-dateutil-2.8.1.tar.gz", hash = "sha256:73ebfe9dbf22e832286dafa60473e4cd239f8592f699aa5adaf10050e6e1823c"}, |
|||
{file = "python_dateutil-2.8.1-py2.py3-none-any.whl", hash = "sha256:75bb3f31ea686f1197762692a9ee6a7550b59fc6ca3a1f4b5d7e32fb98e2da2a"}, |
|||
] |
|||
python-dotenv = [ |
|||
{file = "python-dotenv-0.15.0.tar.gz", hash = "sha256:587825ed60b1711daea4832cf37524dfd404325b7db5e25ebe88c495c9f807a0"}, |
|||
{file = "python_dotenv-0.15.0-py2.py3-none-any.whl", hash = "sha256:0c8d1b80d1a1e91717ea7d526178e3882732420b03f08afea0406db6402e220e"}, |
|||
] |
|||
pytumblr = [ |
|||
{file = "PyTumblr-0.1.0-py2.py3-none-any.whl", hash = "sha256:a3774d3978bcff2db98f36a2e5d17bb8496ac21157b1b518089adad86d0dca72"}, |
|||
{file = "PyTumblr-0.1.0.tar.gz", hash = "sha256:eaa4d98217df7ab6392fa5d8801f4a2bdcba35bf0fd49328aa3c98e3b231b6f2"}, |
|||
] |
|||
pywin32 = [ |
|||
{file = "pywin32-300-cp35-cp35m-win32.whl", hash = "sha256:1c204a81daed2089e55d11eefa4826c05e604d27fe2be40b6bf8db7b6a39da63"}, |
|||
{file = "pywin32-300-cp35-cp35m-win_amd64.whl", hash = "sha256:350c5644775736351b77ba68da09a39c760d75d2467ecec37bd3c36a94fbed64"}, |
|||
{file = "pywin32-300-cp36-cp36m-win32.whl", hash = "sha256:a3b4c48c852d4107e8a8ec980b76c94ce596ea66d60f7a697582ea9dce7e0db7"}, |
|||
{file = "pywin32-300-cp36-cp36m-win_amd64.whl", hash = "sha256:27a30b887afbf05a9cbb05e3ffd43104a9b71ce292f64a635389dbad0ed1cd85"}, |
|||
{file = "pywin32-300-cp37-cp37m-win32.whl", hash = "sha256:d7e8c7efc221f10d6400c19c32a031add1c4a58733298c09216f57b4fde110dc"}, |
|||
{file = "pywin32-300-cp37-cp37m-win_amd64.whl", hash = "sha256:8151e4d7a19262d6694162d6da85d99a16f8b908949797fd99c83a0bfaf5807d"}, |
|||
{file = "pywin32-300-cp38-cp38-win32.whl", hash = "sha256:fbb3b1b0fbd0b4fc2a3d1d81fe0783e30062c1abed1d17c32b7879d55858cfae"}, |
|||
{file = "pywin32-300-cp38-cp38-win_amd64.whl", hash = "sha256:60a8fa361091b2eea27f15718f8eb7f9297e8d51b54dbc4f55f3d238093d5190"}, |
|||
{file = "pywin32-300-cp39-cp39-win32.whl", hash = "sha256:638b68eea5cfc8def537e43e9554747f8dee786b090e47ead94bfdafdb0f2f50"}, |
|||
{file = "pywin32-300-cp39-cp39-win_amd64.whl", hash = "sha256:b1609ce9bd5c411b81f941b246d683d6508992093203d4eb7f278f4ed1085c3f"}, |
|||
] |
|||
pyzmq = [ |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:c0cde362075ee8f3d2b0353b283e203c2200243b5a15d5c5c03b78112a17e7d4"}, |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:ff1ea14075bbddd6f29bf6beb8a46d0db779bcec6b9820909584081ec119f8fd"}, |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:26380487eae4034d6c2a3fb8d0f2dff6dd0d9dd711894e8d25aa2d1938950a33"}, |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:3e29f9cf85a40d521d048b55c63f59d6c772ac1c4bf51cdfc23b62a62e377c33"}, |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-win32.whl", hash = "sha256:4f34a173f813b38b83f058e267e30465ed64b22cd0cf6bad21148d3fa718f9bb"}, |
|||
{file = "pyzmq-22.0.3-cp36-cp36m-win_amd64.whl", hash = "sha256:30df70f81fe210506aa354d7fd486a39b87d9f7f24c3d3f4f698ec5d96b8c084"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:7026f0353977431fc884abd4ac28268894bd1a780ba84bb266d470b0ec26d2ed"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:6d4163704201fff0f3ab0cd5d7a0ea1514ecfffd3926d62ec7e740a04d2012c7"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:763c175294d861869f18eb42901d500eda7d3fa4565f160b3b2fd2678ea0ebab"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:61e4bb6cd60caf1abcd796c3f48395e22c5b486eeca6f3a8797975c57d94b03e"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-win32.whl", hash = "sha256:b25e5d339550a850f7e919fe8cb4c8eabe4c917613db48dab3df19bfb9a28969"}, |
|||
{file = "pyzmq-22.0.3-cp37-cp37m-win_amd64.whl", hash = "sha256:3ef50d74469b03725d781a2a03c57537d86847ccde587130fe35caafea8f75c6"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:60e63577b85055e4cc43892fecd877b86695ee3ef12d5d10a3c5d6e77a7cc1a3"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:f5831eff6b125992ec65d973f5151c48003b6754030094723ac4c6e80a97c8c4"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:9221783dacb419604d5345d0e097bddef4459a9a95322de6c306bf1d9896559f"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:b62ea18c0458a65ccd5be90f276f7a5a3f26a6dea0066d948ce2fa896051420f"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-win32.whl", hash = "sha256:81e7df0da456206201e226491aa1fc449da85328bf33bbeec2c03bb3a9f18324"}, |
|||
{file = "pyzmq-22.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:f52070871a0fd90a99130babf21f8af192304ec1e995bec2a9533efc21ea4452"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-macosx_10_15_universal2.whl", hash = "sha256:c5e29fe4678f97ce429f076a2a049a3d0b2660ada8f2c621e5dc9939426056dd"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:d18ddc6741b51f3985978f2fda57ddcdae359662d7a6b395bc8ff2292fca14bd"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:4231943514812dfb74f44eadcf85e8dd8cf302b4d0bce450ce1357cac88dbfdc"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:23a74de4b43c05c3044aeba0d1f3970def8f916151a712a3ac1e5cd9c0bc2902"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:532af3e6dddea62d9c49062ece5add998c9823c2419da943cf95589f56737de0"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-win32.whl", hash = "sha256:33acd2b9790818b9d00526135acf12790649d8d34b2b04d64558b469c9d86820"}, |
|||
{file = "pyzmq-22.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:a558c5bc89d56d7253187dccc4e81b5bb0eac5ae9511eb4951910a1245d04622"}, |
|||
{file = "pyzmq-22.0.3-pp36-pypy36_pp73-macosx_10_9_x86_64.whl", hash = "sha256:581787c62eaa0e0db6c5413cedc393ebbadac6ddfd22e1cf9a60da23c4f1a4b2"}, |
|||
{file = "pyzmq-22.0.3-pp36-pypy36_pp73-manylinux2010_x86_64.whl", hash = "sha256:38e3dca75d81bec4f2defa14b0a65b74545812bb519a8e89c8df96bbf4639356"}, |
|||
{file = "pyzmq-22.0.3-pp36-pypy36_pp73-win32.whl", hash = "sha256:2f971431aaebe0a8b54ac018e041c2f0b949a43745444e4dadcc80d0f0ef8457"}, |
|||
{file = "pyzmq-22.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:da7d4d4c778c86b60949d17531e60c54ed3726878de8a7f8a6d6e7f8cc8c3205"}, |
|||
{file = "pyzmq-22.0.3-pp37-pypy37_pp73-manylinux2010_x86_64.whl", hash = "sha256:13465c1ff969cab328bc92f7015ce3843f6e35f8871ad79d236e4fbc85dbe4cb"}, |
|||
{file = "pyzmq-22.0.3-pp37-pypy37_pp73-win32.whl", hash = "sha256:279cc9b51db48bec2db146f38e336049ac5a59e5f12fb3a8ad864e238c1c62e3"}, |
|||
{file = "pyzmq-22.0.3.tar.gz", hash = "sha256:f7f63ce127980d40f3e6a5fdb87abf17ce1a7c2bd8bf2c7560e1bbce8ab1f92d"}, |
|||
] |
|||
requests = [ |
|||
{file = "requests-2.25.1-py2.py3-none-any.whl", hash = "sha256:c210084e36a42ae6b9219e00e48287def368a26d03a048ddad7bfee44f75871e"}, |
|||
{file = "requests-2.25.1.tar.gz", hash = "sha256:27973dd4a904a4f13b263a19c866c13b92a39ed1c964655f025f3f8d3d75b804"}, |
|||
] |
|||
requests-oauthlib = [ |
|||
{file = "requests-oauthlib-1.3.0.tar.gz", hash = "sha256:b4261601a71fd721a8bd6d7aa1cc1d6a8a93b4a9f5e96626f8e4d91e8beeaa6a"}, |
|||
{file = "requests_oauthlib-1.3.0-py2.py3-none-any.whl", hash = "sha256:7f71572defaecd16372f9006f33c2ec8c077c3cfa6f5911a9a90202beb513f3d"}, |
|||
{file = "requests_oauthlib-1.3.0-py3.7.egg", hash = "sha256:fa6c47b933f01060936d87ae9327fead68768b69c6c9ea2109c48be30f2d4dbc"}, |
|||
] |
|||
six = [ |
|||
{file = "six-1.15.0-py2.py3-none-any.whl", hash = "sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"}, |
|||
{file = "six-1.15.0.tar.gz", hash = "sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259"}, |
|||
] |
|||
soupsieve = [ |
|||
{file = "soupsieve-2.2-py3-none-any.whl", hash = "sha256:d3a5ea5b350423f47d07639f74475afedad48cf41c0ad7a82ca13a3928af34f6"}, |
|||
{file = "soupsieve-2.2.tar.gz", hash = "sha256:407fa1e8eb3458d1b5614df51d9651a1180ea5fedf07feb46e45d7e25e6d6cdd"}, |
|||
] |
|||
tornado = [ |
|||
{file = "tornado-6.1-cp35-cp35m-macosx_10_9_x86_64.whl", hash = "sha256:d371e811d6b156d82aa5f9a4e08b58debf97c302a35714f6f45e35139c332e32"}, |
|||
{file = "tornado-6.1-cp35-cp35m-manylinux1_i686.whl", hash = "sha256:0d321a39c36e5f2c4ff12b4ed58d41390460f798422c4504e09eb5678e09998c"}, |
|||
{file = "tornado-6.1-cp35-cp35m-manylinux1_x86_64.whl", hash = "sha256:9de9e5188a782be6b1ce866e8a51bc76a0fbaa0e16613823fc38e4fc2556ad05"}, |
|||
{file = "tornado-6.1-cp35-cp35m-manylinux2010_i686.whl", hash = "sha256:61b32d06ae8a036a6607805e6720ef00a3c98207038444ba7fd3d169cd998910"}, |
|||
{file = "tornado-6.1-cp35-cp35m-manylinux2010_x86_64.whl", hash = "sha256:3e63498f680547ed24d2c71e6497f24bca791aca2fe116dbc2bd0ac7f191691b"}, |
|||
{file = "tornado-6.1-cp35-cp35m-manylinux2014_aarch64.whl", hash = "sha256:6c77c9937962577a6a76917845d06af6ab9197702a42e1346d8ae2e76b5e3675"}, |
|||
{file = "tornado-6.1-cp35-cp35m-win32.whl", hash = "sha256:6286efab1ed6e74b7028327365cf7346b1d777d63ab30e21a0f4d5b275fc17d5"}, |
|||
{file = "tornado-6.1-cp35-cp35m-win_amd64.whl", hash = "sha256:fa2ba70284fa42c2a5ecb35e322e68823288a4251f9ba9cc77be04ae15eada68"}, |
|||
{file = "tornado-6.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:0a00ff4561e2929a2c37ce706cb8233b7907e0cdc22eab98888aca5dd3775feb"}, |
|||
{file = "tornado-6.1-cp36-cp36m-manylinux1_i686.whl", hash = "sha256:748290bf9112b581c525e6e6d3820621ff020ed95af6f17fedef416b27ed564c"}, |
|||
{file = "tornado-6.1-cp36-cp36m-manylinux1_x86_64.whl", hash = "sha256:e385b637ac3acaae8022e7e47dfa7b83d3620e432e3ecb9a3f7f58f150e50921"}, |
|||
{file = "tornado-6.1-cp36-cp36m-manylinux2010_i686.whl", hash = "sha256:25ad220258349a12ae87ede08a7b04aca51237721f63b1808d39bdb4b2164558"}, |
|||
{file = "tornado-6.1-cp36-cp36m-manylinux2010_x86_64.whl", hash = "sha256:65d98939f1a2e74b58839f8c4dab3b6b3c1ce84972ae712be02845e65391ac7c"}, |
|||
{file = "tornado-6.1-cp36-cp36m-manylinux2014_aarch64.whl", hash = "sha256:e519d64089b0876c7b467274468709dadf11e41d65f63bba207e04217f47c085"}, |
|||
{file = "tornado-6.1-cp36-cp36m-win32.whl", hash = "sha256:b87936fd2c317b6ee08a5741ea06b9d11a6074ef4cc42e031bc6403f82a32575"}, |
|||
{file = "tornado-6.1-cp36-cp36m-win_amd64.whl", hash = "sha256:cc0ee35043162abbf717b7df924597ade8e5395e7b66d18270116f8745ceb795"}, |
|||
{file = "tornado-6.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:7250a3fa399f08ec9cb3f7b1b987955d17e044f1ade821b32e5f435130250d7f"}, |
|||
{file = "tornado-6.1-cp37-cp37m-manylinux1_i686.whl", hash = "sha256:ed3ad863b1b40cd1d4bd21e7498329ccaece75db5a5bf58cd3c9f130843e7102"}, |
|||
{file = "tornado-6.1-cp37-cp37m-manylinux1_x86_64.whl", hash = "sha256:dcef026f608f678c118779cd6591c8af6e9b4155c44e0d1bc0c87c036fb8c8c4"}, |
|||
{file = "tornado-6.1-cp37-cp37m-manylinux2010_i686.whl", hash = "sha256:70dec29e8ac485dbf57481baee40781c63e381bebea080991893cd297742b8fd"}, |
|||
{file = "tornado-6.1-cp37-cp37m-manylinux2010_x86_64.whl", hash = "sha256:d3f7594930c423fd9f5d1a76bee85a2c36fd8b4b16921cae7e965f22575e9c01"}, |
|||
{file = "tornado-6.1-cp37-cp37m-manylinux2014_aarch64.whl", hash = "sha256:3447475585bae2e77ecb832fc0300c3695516a47d46cefa0528181a34c5b9d3d"}, |
|||
{file = "tornado-6.1-cp37-cp37m-win32.whl", hash = "sha256:e7229e60ac41a1202444497ddde70a48d33909e484f96eb0da9baf8dc68541df"}, |
|||
{file = "tornado-6.1-cp37-cp37m-win_amd64.whl", hash = "sha256:cb5ec8eead331e3bb4ce8066cf06d2dfef1bfb1b2a73082dfe8a161301b76e37"}, |
|||
{file = "tornado-6.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:20241b3cb4f425e971cb0a8e4ffc9b0a861530ae3c52f2b0434e6c1b57e9fd95"}, |
|||
{file = "tornado-6.1-cp38-cp38-manylinux1_i686.whl", hash = "sha256:c77da1263aa361938476f04c4b6c8916001b90b2c2fdd92d8d535e1af48fba5a"}, |
|||
{file = "tornado-6.1-cp38-cp38-manylinux1_x86_64.whl", hash = "sha256:fba85b6cd9c39be262fcd23865652920832b61583de2a2ca907dbd8e8a8c81e5"}, |
|||
{file = "tornado-6.1-cp38-cp38-manylinux2010_i686.whl", hash = "sha256:1e8225a1070cd8eec59a996c43229fe8f95689cb16e552d130b9793cb570a288"}, |
|||
{file = "tornado-6.1-cp38-cp38-manylinux2010_x86_64.whl", hash = "sha256:d14d30e7f46a0476efb0deb5b61343b1526f73ebb5ed84f23dc794bdb88f9d9f"}, |
|||
{file = "tornado-6.1-cp38-cp38-manylinux2014_aarch64.whl", hash = "sha256:8f959b26f2634a091bb42241c3ed8d3cedb506e7c27b8dd5c7b9f745318ddbb6"}, |
|||
{file = "tornado-6.1-cp38-cp38-win32.whl", hash = "sha256:34ca2dac9e4d7afb0bed4677512e36a52f09caa6fded70b4e3e1c89dbd92c326"}, |
|||
{file = "tornado-6.1-cp38-cp38-win_amd64.whl", hash = "sha256:6196a5c39286cc37c024cd78834fb9345e464525d8991c21e908cc046d1cc02c"}, |
|||
{file = "tornado-6.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:f0ba29bafd8e7e22920567ce0d232c26d4d47c8b5cf4ed7b562b5db39fa199c5"}, |
|||
{file = "tornado-6.1-cp39-cp39-manylinux1_i686.whl", hash = "sha256:33892118b165401f291070100d6d09359ca74addda679b60390b09f8ef325ffe"}, |
|||
{file = "tornado-6.1-cp39-cp39-manylinux1_x86_64.whl", hash = "sha256:7da13da6f985aab7f6f28debab00c67ff9cbacd588e8477034c0652ac141feea"}, |
|||
{file = "tornado-6.1-cp39-cp39-manylinux2010_i686.whl", hash = "sha256:e0791ac58d91ac58f694d8d2957884df8e4e2f6687cdf367ef7eb7497f79eaa2"}, |
|||
{file = "tornado-6.1-cp39-cp39-manylinux2010_x86_64.whl", hash = "sha256:66324e4e1beede9ac79e60f88de548da58b1f8ab4b2f1354d8375774f997e6c0"}, |
|||
{file = "tornado-6.1-cp39-cp39-manylinux2014_aarch64.whl", hash = "sha256:a48900ecea1cbb71b8c71c620dee15b62f85f7c14189bdeee54966fbd9a0c5bd"}, |
|||
{file = "tornado-6.1-cp39-cp39-win32.whl", hash = "sha256:d3d20ea5782ba63ed13bc2b8c291a053c8d807a8fa927d941bd718468f7b950c"}, |
|||
{file = "tornado-6.1-cp39-cp39-win_amd64.whl", hash = "sha256:548430be2740e327b3fe0201abe471f314741efcb0067ec4f2d7dcfb4825f3e4"}, |
|||
{file = "tornado-6.1.tar.gz", hash = "sha256:33c6e81d7bd55b468d2e793517c909b139960b6c790a60b7991b9b6b76fb9791"}, |
|||
] |
|||
traitlets = [ |
|||
{file = "traitlets-5.0.5-py3-none-any.whl", hash = "sha256:69ff3f9d5351f31a7ad80443c2674b7099df13cc41fc5fa6e2f6d3b0330b0426"}, |
|||
{file = "traitlets-5.0.5.tar.gz", hash = "sha256:178f4ce988f69189f7e523337a3e11d91c786ded9360174a3d9ca83e79bc5396"}, |
|||
] |
|||
urllib3 = [ |
|||
{file = "urllib3-1.26.4-py2.py3-none-any.whl", hash = "sha256:2f4da4594db7e1e110a944bb1b551fdf4e6c136ad42e4234131391e21eb5b0df"}, |
|||
{file = "urllib3-1.26.4.tar.gz", hash = "sha256:e7b021f7241115872f92f43c6508082facffbd1c048e3c6e2bb9c2a157e28937"}, |
|||
] |
|||
wcwidth = [ |
|||
{file = "wcwidth-0.2.5-py2.py3-none-any.whl", hash = "sha256:beb4802a9cebb9144e99086eff703a642a13d6a0052920003a230f3294bbe784"}, |
|||
{file = "wcwidth-0.2.5.tar.gz", hash = "sha256:c4d647b99872929fdb7bdcaa4fbe7f01413ed3d98077df798530e5b04f116c83"}, |
|||
] |
@ -0,0 +1,20 @@ |
|||
[tool.poetry] |
|||
name = "are_na_scripts" |
|||
version = "0.1.0" |
|||
description = "" |
|||
authors = ["Your Name <you@example.com>"] |
|||
|
|||
[tool.poetry.dependencies] |
|||
python = "^3.8" |
|||
arena = "^0.0.5" |
|||
PyTumblr = "^0.1.0" |
|||
beautifulsoup4 = "^4.9.3" |
|||
lxml = "^4.6.2" |
|||
python-dotenv = "^0.15.0" |
|||
markdownify = "^0.6.5" |
|||
pinboard = "^2.1.8" |
|||
ipykernel = "^5.5.3" |
|||
|
|||
[build-system] |
|||
requires = ["poetry-core>=1.0.0"] |
|||
build-backend = "poetry.core.masonry.api" |
@ -0,0 +1,159 @@ |
|||
# %% |
|||
#from arena import Arena |
|||
from dotenv import load_dotenv |
|||
load_dotenv() |
|||
|
|||
import os |
|||
import datetime |
|||
import requests |
|||
from bs4 import BeautifulSoup |
|||
import pytumblr |
|||
from markdownify import markdownify |
|||
|
|||
#%% |
|||
# Log in to Tumblr |
|||
|
|||
tumblr = pytumblr.TumblrRestClient( |
|||
os.environ['TUMBLR_CONS_KEY'], |
|||
os.environ['TUMBLR_CONS_SECRET'], |
|||
os.environ['TUMBLR_AUTH_TOKEN'], |
|||
os.environ['TUMBLR_AUTH_SECRET'] |
|||
) |
|||
|
|||
# tumblr.info() |
|||
|
|||
#%% |
|||
now= datetime.datetime.now() |
|||
arena_queue = [] |
|||
timestamp = now.strftime('%Y.%m.%d-%H:%M') |
|||
|
|||
|
|||
#%% |
|||
# Get posts from Tumblr |
|||
#tumblr.posts('the-air-pump', tag='CFS') |
|||
|
|||
def get_all_posts(client, blog, tag): |
|||
''' |
|||
Found here: https://stackoverflow.com/questions/47311845/print-more-than-20-posts-from-tumblr-api |
|||
''' |
|||
offset = 0 |
|||
while True: |
|||
response = tumblr.posts(blog, limit=20, offset=offset, tag=tag, reblog_info=False, notes_info=False) |
|||
|
|||
# Get the 'posts' field of the response |
|||
posts = response['posts'] |
|||
|
|||
if not posts: return |
|||
|
|||
for post in posts: |
|||
yield post |
|||
|
|||
# move to the next offset |
|||
offset += 20 |
|||
|
|||
#%% |
|||
|
|||
def import_metadata(post): |
|||
date = post['date'] |
|||
link = post['post_url'] |
|||
t = post['type'] |
|||
import_info = f'\n------------\n' \ |
|||
f'Imported from Tumblr on: {timestamp} \n' \ |
|||
f'Originally posted as a {t} on {date} \n' \ |
|||
f'{link}' |
|||
return import_info |
|||
|
|||
# %% |
|||
|
|||
for post in get_all_posts(tumblr, 'the-air-pump', 'Internet Mythology'): |
|||
|
|||
if post['type'] == 'photo': |
|||
for photo in post['photos']: |
|||
arena_post = { |
|||
'source': photo['original_size']['url'], |
|||
'description': markdownify(post['caption']), |
|||
'title': post['summary'] |
|||
} |
|||
arena_post['description'] += import_metadata(post) |
|||
arena_queue.append(arena_post) |
|||
|
|||
elif post['type'] == 'link': |
|||
arena_post = { |
|||
'source': post['url'], |
|||
'description': '', |
|||
'title': post['title'] |
|||
} |
|||
arena_post['description'] += import_metadata(post) |
|||
arena_queue.append(arena_post) |
|||
|
|||
elif post['type'] == 'quote': |
|||
text = markdownify(post['text']) |
|||
source = markdownify(post['source']) |
|||
arena_post = { |
|||
'content': text + '\n - ' + 'Source: ' + source, |
|||
'title': post['source'], |
|||
'description': 'Source: ' + source |
|||
} |
|||
arena_post['description'] += import_metadata(post) |
|||
arena_queue.append(arena_post) |
|||
|
|||
elif post['type'] == 'text': |
|||
post_body = post['body'] |
|||
soup = BeautifulSoup(post_body, 'lxml') |
|||
# extract text without images |
|||
text_soup = soup |
|||
text_content = '' |
|||
for figure in text_soup.select('figure'): |
|||
figure.extract() |
|||
for p in text_soup.find_all('p'): |
|||
for c in p.contents: |
|||
if type(c) == 'NavigableString': |
|||
text_content += str(c) + '\n' |
|||
elif type(c) == 'Tag': |
|||
if c.name == "a": |
|||
text_content += c.attrs['href'] |
|||
|
|||
text_content = markdownify(text_content) |
|||
# extract all images and make each into a post |
|||
images = soup.find_all('img') |
|||
for image in images: |
|||
arena_post = { |
|||
'source': image.attrs['src'], |
|||
'title': post['title'], |
|||
'description': 'Image extracted from Tumblr text post:\n' + text_content |
|||
} |
|||
arena_post['description'] += import_metadata(post) |
|||
arena_queue.append(arena_post) |
|||
|
|||
# Post with only text content |
|||
arena_post = { |
|||
'title': post['title'], |
|||
'content': text_content, |
|||
'description': '' |
|||
} |
|||
arena_post['description'] += import_metadata(post) |
|||
arena_queue.append(arena_post) |
|||
|
|||
# XXX TODO: handle sound, video posts and others that are skipped |
|||
|
|||
else: |
|||
print('----') |
|||
print('Unsuported type: ' + post['type']) |
|||
print(post['post_url']) |
|||
|
|||
#print(arena_queue) |
|||
|
|||
#%% |
|||
# Are.na posting |
|||
|
|||
url = "https://api.are.na/v2/channels/automation_inbox/blocks" |
|||
|
|||
arena_queue.reverse() |
|||
|
|||
print('Posting ' + str(len(arena_queue)) + ' blocks') |
|||
|
|||
for block in arena_queue: |
|||
block['access_token'] = os.environ['ARENA_TOKEN'] |
|||
x = requests.post(url, data=block) |
|||
|
|||
print('Done') |
Write
Preview
Loading…
Cancel
Save
Reference in new issue