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
import concurrent.futures | |
import urllib.request | |
import uuid | |
import requests | |
def getURLs(filename : str) -> list: | |
with open(filename, 'r') as f: | |
urls = f.read().splitlines() | |
return urls |
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
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
import io | |
import time | |
# Any infinity scroll URL | |
var = "machinelearning" | |
url = "https://pinterest.com/search/pins/?q=" + var | |
ScrollNumber = 10 # The depth we wish to load | |
sleepTimer = 1 # Waiting 1 second for page to load |
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
import pytumblr | |
import io | |
def get_all_posts(client, blog): | |
offset = 0 | |
while True: | |
# Note: similar for ``client.tagged()`` etc. | |
response = client.posts(blog, limit=20, offset=offset, reblog_info=True, notes_info=True) | |
posts = response['posts'] | |
if not posts: return |
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
// Ex. $ npx ts-node BscRawTx.ts --txData=<txData> | |
// Consult: https://github.com/WP-LKL/bscValueDefi-Exploit, for python use-case | |
const Tx = require('ethereumjs-tx').Transaction; | |
const Web3 = require('web3'); | |
import Common from 'ethereumjs-common'; | |
import {parse} from 'ts-command-line-args'; | |
interface input { | |
txData: string; |