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 configparser | |
| import praw | |
| import pickledb | |
| import time | |
| import sys | |
| from requests import get | |
| import datetime | |
| ignore = ['-en-', 'trite_username', '0imp', '1uvx', '--og', 'Mr_E'] |
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
| from bs4 import BeautifulSoup | |
| from requests import get | |
| import csv | |
| def main(query, max_pages, outfile): | |
| query = query.replace(' ', '%20') | |
| page = 1 | |
| next = True | |
| with open(outfile, 'w+') as csv_file: |
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
| from bs4 import BeautifulSoup | |
| from requests import get | |
| from fake_useragent import UserAgent | |
| import csv | |
| max_pages = 2 | |
| products_per_page = 100 | |
| min_price = 10 | |
| max_price = 100 |
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 | |
| data = { | |
| 'email': 'XXXX', | |
| 'api_access_key': 'XXXX' | |
| } | |
| s = requests.Session() | |
| s.post('https://www.alacalc.com/api/v1/sessions', data=data) |
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
| [REDDIT] | |
| username = XXXX | |
| password = XXXX | |
| client_id = XXXX | |
| client_secret = XXXX |
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 configparser | |
| config = configparser.ConfigParser() | |
| config.read('config.ini') | |
| reddit_user = config.get('REDDIT', 'username') | |
| reddit_pass = config.get('REDDIT', 'password') | |
| client_id = config.get('REDDIT', 'client_id') | |
| client_secret = config.get('REDDIT', 'client_secret') |
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
| Verifying that "impshum.id" is my Blockstack ID. https://explorer.blockstack.org/name/impshum.id |
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 praw | |
| client_id = 'XXXX' | |
| client_secret = 'XXXX' | |
| reddit_user = 'XXXX' | |
| reddit_pass = 'XXXX' | |
| user_agent = 'Troll thing' | |
| target_user = 'XXXX' | |
| reply = 'Go spam someone else with your idiotic bullshit please.' |
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
| <?php | |
| function gallery() | |
| { | |
| $files = glob("images/*.{jpg,jpeg,png,gif,JPG,JPEG,PNG,GIF}", GLOB_BRACE); | |
| $sorted_files = array(); | |
| foreach ($files as $file) { | |
| $sorted_files[$file] = filemtime($file); | |
| } |
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
| <?php | |
| function go(){ | |
| $day = date('l'); | |
| if ($day == 'Monday') { | |
| display($day, 'red'); | |
| } elseif ($day == 'Tuesday') { | |
| display($day); | |
| } elseif ($day == 'Wednesday') { | |
| display($day); |