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 argparse, time | |
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
parser = argparse.ArgumentParser() | |
parser.add_argument('email') | |
parser.add_argument('password') | |
args = parser.parse_args() |
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 argparse, csv, requests | |
from lxml import html | |
parser = argparse.ArgumentParser() | |
parser.add_argument("user_id") | |
parser.add_argument("-o", "--output", default="ratings.csv") | |
args = parser.parse_args() | |
url, page, results = f"https://www.csfd.cz/uzivatel/{args.user_id}/hodnoceni/", 1, [] | |
print(f"scraping ratings for user: {args.user_id}") |