Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import re
import requests
URL = ""
TITLE_REGEX = r'main-title.+\>(.+)\<'
EXCERPT_REGEX = r'(Vol\.[^<]+)'
r = requests.get(URL)
titles = re.findall(TITLE_REGEX, r.text)[1:]
excerpts = re.findall(EXCERPT_REGEX, r.text)
for i, t in enumerate(titles):
print(t, excerpts[i])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.