Skip to content

Instantly share code, notes, and snippets.

View aleenprd's full-sized avatar
💭
busy bee

Alin Preda aleenprd

💭
busy bee
View GitHub Profile
@aleenprd
aleenprd / ImdbReviewScraper.py
Created October 24, 2022 17:51
ImdbReviewScraper
class ImdbReviewScraper(Scraper):
"""Implements methods for scraping IMDB.
Inherited Attributes:
chromedriver (chromedriver): a Chrome webdriver for Selenium.
Own Methods:
@staticmethod get_ratings_page
@staticmethod get_reviews_page
get_episodes_links
@aleenprd
aleenprd / ImdbReviewScraper.py
Created October 24, 2022 19:45
ImdbReviewScraper
class ImdbReviewScraper(Scraper):
"""Implements methods for scraping IMDB.
Inherited Attributes:
chromedriver (chromedriver): a Chrome webdriver for Selenium.
Own Methods:
@staticmethod get_ratings_page
@staticmethod get_reviews_page
get_episodes_links
@aleenprd
aleenprd / scrape_imdb_reviews_main.py
Created October 24, 2022 19:47
scrape_imdb_reviews_main
"""Python executable which scrapes IMDB for reviews."""
import argparse
import pandas as pd
from time import sleep
from tqdm import tqdm
from dependencies.general import timing
from dependencies.scrapers import ImdbReviewScraper
@aleenprd
aleenprd / WorldPostCodeScraper.py
Last active November 11, 2023 17:19
WorldPostCodeScraper
import pandas as pd
from urllib import request
from bs4 import BeautifulSoup
from fake_useragent import UserAgent
from typing import Union
from time import sleep
class WorldPostCodeScraper:
"""Scraper class for https://worldpostalcode.com/."""