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 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 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 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 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
[TWITTER] | |
twitter_consumer_key = XXXX | |
twitter_consumer_secret = XXXX | |
twitter_access_token = XXXX | |
twitter_access_token_secret = XXXX |
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 webview | |
class Api: | |
def __init__(self): | |
self.recording = False | |
def record(self): | |
if not self.recording: | |
self.recording = 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
things = { | |
'1': 'one', | |
'2': 'two', | |
'3': 'three', | |
'0': 'EXIT' | |
} | |
def menu(options, menu_text): | |
while 1: | |
for k, v in options.items(): |
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
// OPEN JS CONSOLE THEN | |
// UPVOTE | |
$('.up').click(); | |
// DOWNVOTE | |
$('.down').click(); | |
// P.S. NOT RECOMMENDED |
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 bs4 import BeautifulSoup | |
import requests | |
import urllib.parse | |
import pandas as pd | |
import json | |
import csv | |
def build_query(a, b): | |
a = a.replace(' ', '+') |
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 bs4 import BeautifulSoup | |
from splinter import Browser | |
from selenium.webdriver.chrome.options import Options | |
import csv | |
categories = [ | |
{'Arbeitsspeicher': {'pages': []}}, | |
{'Capture-Karten': {'pages': []}}, | |
{'PC-Komponenten': {'pages': ['CPUs', 'Festplatten', 'Laufwerke', 'Mainboards']}}, |