MCPcopy Create free account
hub / github.com/geekcomputers/Python / main

Function main

prison_break_scrapper.py:22–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20
21
22def main():
23 for i in range(1, 5):
24 r = req.get(BASE_URL + str(i) + "/1080/")
25 soup = bs(r.text, "html.parser")
26 link_ = []
27 for link in soup.find_all("a"):
28 if ".mkv" in link.get("href"):
29 link_.append(BASE_URL + str(i) + "/1080/" + link.get("href"))
30 if not os.path.exists("season" + str(i)):
31 os.makedirs("season" + str(i))
32 download_files(link_, i)
33
34
35if __name__ == "__main__":

Callers 1

Calls 3

download_filesFunction · 0.85
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected