Skip to content

D-Pod-dev/AMC-calendar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AMC-calendar

A web scraper-based calendar for AMC Theatres' movie showtimes.

I'm not a huge fan of AMC Theatres' existing UI, which requires you to click through every single day to browse showtimes. Through web scraping, every page can be fetched in advance to create a structured calendar-like UI.

Development Plan

Python (Backend)

poetry used for package management.

Scraping Toolset:

  • requests: Downloads website pages.

    import requests
    html = requests.get(url).text
  • BeautifulSoup: Parses HTML. (lxml is the html parser being used)

    from bs4 import BeautifulSoup
    soup = BeautifulSoup(html, "lxml")

For dynamic JS:

If the webpage's contents are loaded using js, not static html.

  • Playwright (MODERN!): loads web pages with JS.
  • Selenium: older browser automation, use only if Playwright fails.

Data handling:

  • re (RegEx): pattern extraction.
  • json: "save sample outputs and inspect them."
  • pprint: pretty-print nested dictionaries.

FastAPI:

Connecting python script to JS.

  • fastapi: exposes scraped data as an api endpoint.
  • uvicorn: "run the FastAPI server."

About

A web scraper-based calendar for AMC Theatres' movie showtimes.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages