This file contains 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
#!/usr/bin/env python | |
''' | |
selenium_twitter | |
================ | |
Uses selenium to extract Tweets from Twitter | |
for a given user. Note that this breaks Twitter's | |
ToS and you can easily get banned for doing this. | |
I highly recommend you do not do this while logged in, | |
or on the same IP address as your main account. |
This file contains 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
#!/usr/bin/env python | |
''' | |
export_twitter | |
============== | |
Export data information from Twitter, including friends, followers, | |
statuses, and more. Note that the API JSON document should look like: | |
{ | |
"consumer_key": "...", |
This file contains 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
#!/usr/bin/env python | |
''' | |
export_friends | |
============== | |
Export friend information from Twitter. Note that | |
the API JSON document should look like: | |
{ | |
"consumer_key": "...", |
This file contains 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
#!/usr/bin/env python3 | |
''' | |
attachments | |
=========== | |
Dump all the attachments in an ENEX file, | |
and export the attachment-less ENEX file to disk. | |
''' | |
# This is free and unencumbered software released into the public domain. |
This file contains 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
''' | |
Scripts to convert pure-Python modules into a Python dictionary, which can then be reconverted | |
into Python modules, allowing distribution of code with complex imports in a single script. | |
This code is unlicensed and free and unencumbered code in the public domain. | |
''' | |
import os | |
import sys | |
import types |
This file contains 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
#!/bin/bash | |
# Convert an achive of zipped JP2 files to a CBZ archive. | |
# Must have ImageMagick with the JP2 extensions enabled. | |
set -ex | |
# Get our arguments, and unzip the file. | |
input="$1" | |
input_dir=$(dirname "$input") | |
input_basename=$(basename "$input") |
This file contains 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
''' | |
result | |
------ | |
Rust-style results and decorator for Python. | |
Note: I don't personally advocate using it in production, but it's a much better | |
option than using the following: | |
https://twitter.com/DinisCruz/status/1229058078714351616 | |
This file contains 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
#!/usr/bin/env python | |
''' | |
send_text | |
========= | |
Send text with a message. | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or |
This file contains 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
''' | |
block_followers | |
=============== | |
Block followers of a given account. | |
Block followers **does** not block an account if: | |
1. The account is verified (override with the `whitelist_verified=False`). | |
2. You are following the account (override with `whitelist_following=False`). |
This file contains 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
// This is derived off of BurntSushi's rust-memchr, and is re-released under | |
// the same licensing conditions as rust-memchr. | |
// | |
// Dual-licensed under MIT or the UNLICENSE. | |
// | |
// LICENSE | |
// ======= | |
// | |
// This is free and unencumbered software released into the public domain. | |
// |
NewerOlder