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 requests | |
import json | |
cookies = { | |
# 'PHPSESSID': 'h660q1l9m57slcifjgpnulhtde', | |
} | |
headers = { | |
'Accept': 'application/json, text/javascript, */*; q=0.01', | |
'Accept-Language': 'en-GB,en;q=0.9', |
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 json | |
import logging | |
import random | |
import requests | |
import os.path | |
from bs4 import BeautifulSoup | |
ssl_verify = True |
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 csv | |
import json | |
import os | |
import requests | |
import sys | |
class SpotifyWebApiClient: | |
def __init__(self): |
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
var releases = [...document.getElementsByClassName("chartlist-name")].map(e=>e.textContent.trim()) | |
var artists = [...document.getElementsByClassName("chartlist-artist")].map(e=>e.textContent.trim()) | |
var plays = [...document.getElementsByClassName("chartlist-count-bar-value")].map(e=>e.textContent.trim().split(" ")[0]) | |
const zip = (a, b) => a.map((k, i) => [k, b[i]]); | |
var chart = zip(zip(releases,artists), plays) | |
copy(chart) |
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
Homebrew build logs for ghc on macOS 10.14 | |
Build date: 2018-06-16 12:14:16 |
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
Homebrew build logs for gcc on macOS 10.13 | |
Build date: 2017-08-10 17:28:04 |
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
Homebrew build logs for gcc on macOS 10.13 | |
Build date: 2017-08-09 23:29:11 |
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
Homebrew build logs for gcc on macOS 10.13 | |
Build date: 2017-08-08 11:00:02 |
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 tweepy | |
from tweepy import OAuthHandler | |
import re | |
consumer_key = 'CONSUMER_KEY' | |
consumer_secret = 'CONSUMER_SECRET' | |
access_token = 'ACCESS_TOKEN' | |
access_secret = 'ACCESS_SECRET' | |
auth = OAuthHandler(consumer_key, consumer_secret) |
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
# Bot that mirror some websites from /r/italy to archive.today | |
# Yeah, this code sucks. Deal with it. | |
# Consider yourself lucky to not have seen the first version. | |
from __future__ import print_function | |
import praw | |
import re | |
import requests | |
import time |
NewerOlder