Skip to content

Instantly share code, notes, and snippets.

View aleenprd's full-sized avatar
💭
busy bee

Alin Preda aleenprd

💭
busy bee
  • Group One
  • Copenhagen, Denmark
  • 03:04 (UTC -12:00)
  • LinkedIn in/alin-preda
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/."""
@aleenprd
aleenprd / start-llamacpp-server-docker.sh
Created July 26, 2025 19:03
Start a docker server for llama.cpp
#!/bin/bash
# Llama.cpp Docker Server Launcher
#
# This script can be configured using environment variables and/or command-line arguments.
# Command-line arguments take precedence over environment variables.
#
# Environment variables:
# LLAMA_HOST - Server host (default: 0.0.0.0)
# LLAMA_PORT - Server port (default: 8000)