You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
510 B
Python

# -*- coding: utf-8 -*-
import os, requests, shutil
from bs4 import BeautifulSoup
from time import time
from multiprocessing.pool import ThreadPool
base_url = 'https://www.zeit.de/serie/die-kaenguru-comics?p='
for page in range(1, 15):
page_url = base_url + str(page)
print(page_url)
r = requests.get(page_url)
soup = BeautifulSoup(r.text, 'html.parser')
articles = soup.find_all('article')
for article in articles:
comic_title = article.a.contents
print(comic_title)