Skip to content

Instantly share code, notes, and snippets.

View ArjixWasTaken's full-sized avatar

Angelos Bouklis ArjixWasTaken

  • Greece
  • 22:33 (UTC +03:00)
View GitHub Profile
from bs4 import BeautifulSoup # pip install bs4
import re
with open(r"PATH/TO/CHAPTERS/XML/FILE.xml", 'r') as f:
soup = BeautifulSoup(f.read(), 'html.parser')
chapters = soup.select('editionentry > chapteratom')
chapters_array = []
# This is a wrapper for my API that scrapes Yify (yts.mx)
# Import the API
from YifyAPI.yify import search_yify as search # pip install YifyAPI
# Import the table
from tabulate import tabulate # pip install tabulate
# Import other utilities
import click, os # pip install click