This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import sys | |
import os | |
headers = { | |
'X-Requested-With': 'com.bandcamp.android', | |
'Content-Type': 'application/json', | |
'User-Agent': 'Dalvik/2.1.0 (Linux; U; Android 9; Unknown Device)', | |
'Host': 'bandcamp.com', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import sys | |
import os | |
import requests | |
import uuid | |
# Push API | |
headers = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pikepdf | |
import sys | |
input = sys.argv[1] | |
with pikepdf.open(input) as pdf: | |
for page in pdf.pages: | |
print(str(dict(page.as_dict()))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import json | |
import requests | |
import traceback | |
if len(sys.argv)<4: | |
print("Scrape whole subreddit's submissions.") | |
print(f"Usage: {sys.argv[0]} SUBREDDIT BEFORETIMESTAMP OUTPUTFILE") | |
exit() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swagger: "2.0" | |
info: | |
description: "" | |
version: "1.0.0" | |
title: "NINA Warnmeldungen" | |
license: | |
name: "Proprietary" | |
host: "warnung.bund.de" | |
basePath: "/api31" | |
schemes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from hashlib import md5 | |
import json | |
import sys | |
headers = { | |
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', | |
"Accept": "application/json" | |
} | |
default_params = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from requests.auth import HTTPBasicAuth | |
import json | |
from pathlib import Path | |
apikey = 'ZTJlOWNhZGUtNzlmZS00ZGU2LTkwYjMtZDk1ODRlMDkwODM5' #from the APK | |
secret = 'MTRjZTVjM2EtOGVlZi00OTU3LWFmNjktNTllODFhNmYyNzI5' #from the APK | |
def download_file(url, filename): | |
with requests.get(url, stream=True) as r: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pikepdf | |
import sys | |
if len(sys.argv)<3: | |
print(f"Usage {sys.argv[0]} input.pdf output.pdf") | |
exit(1) | |
input = sys.argv[1] | |
output = sys.argv[2] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<Mpeg7 | |
xmlns="urn:mpeg:mpeg7:schema:2001" | |
xmlns:mpeg7="urn:mpeg7:schema:2001" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<Description xsi:type="ContentEntityType"> | |
<MultimediaContent xsi:type="VideoType"> | |
<Video id="videosegment"> | |
<MediaLocator> | |
<MediaUri>https://admin.streaming.rwth-aachen.de/files/mediapackage/e97569b7-9bb9-4ed0-bd4f-9adbb66595cc/db24fdd6-6d07-44bf-9677-f663fce8e2c0/IDS_01_intro.mp4</MediaUri> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.nodes.Element; | |
import org.jsoup.select.Elements; | |
import org.jsoup.nodes.Attributes; | |
import java.io.File; | |
import java.nio.charset.StandardCharsets; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.util.*; |