I hereby claim:
- I am bitnik on github.
- I am bitnik (https://keybase.io/bitnik) on keybase.
- I have a public key ASAHyzn4x4d3XcDo7h2faIsDpNJ7j_FyLkZbPOuxiwcUrQo
To claim this, I am signing this object:
| ffmpeg |
I hereby claim:
To claim this, I am signing this object:
| requests |
| #!/bin/bash | |
| # Based on kizbitz/dockerhub-v2-api-organization.sh at https://gist.github.com/kizbitz/175be06d0fbbb39bc9bfa6c0cb0d4721 | |
| # Was also useful: https://success.docker.com/article/how-do-i-authenticate-with-the-v2-api | |
| # Example for the Docker Hub V2 API | |
| # Returns all images and tags associated with a Docker Hub organization account. | |
| # Requires 'jq': https://stedolan.github.io/jq/ | |
| # set username, password, and organization | |
| UNAME="gesisnotebooks" |
| import requests | |
| def create_wp_session(language='en'): | |
| # create session | |
| session = requests.session() | |
| # fill user, password and headers | |
| user = "" | |
| password = "" | |
| headers = {} | |
| session.auth = (user, password) |
| import tempfile | |
| import glob | |
| import argparse | |
| # import xlrd | |
| import pandas | |
| from os.path import join, basename | |
| from shutil import copyfile | |
| from pdf2image import convert_from_path # , convert_from_bytes | |
| from pyzbar.pyzbar import decode | |
| # from PIL import Image |
| import requests | |
| session = requests.session() | |
| # log in data | |
| session.auth = ('wikiwho_api_username', 'wikiwho_api_password') | |
| language = 'en' | |
| wikiwho_api_base_url = 'https://api.wikiwho.net/{}/api/v1.0.0-beta/'.format(language) | |
| # Example: get revision content by page id |