-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathThe Flash.py
More file actions
31 lines (28 loc) · 808 Bytes
/
The Flash.py
File metadata and controls
31 lines (28 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import urllib
from openpyxl import Workbook
book = Workbook()
sheet = book.active
series = "The Flash"
no_of_season = 2
no_of_season=no_of_season+1
# episode_list = ['01','10','24']
for season in range(1,no_of_season):
seasons="/s"+str(season)
url = "http://s1.bia2m.in/Series/"+series+seasons
n=25
for item in range(1,n):
if item <=9:
item == '0'+str(item)
actuallink = url+"/"+str(series)+"%20S0"+str(season)+"%20E0"+str(item)+"%20(Bia2Movies).mkv"
else:
actuallink = url+"/"+str(series)+"%20S0"+str(season)+"%20E"+str(item)+"%20(Bia2Movies).mkv"
print actuallink
x = urllib.urlopen(actuallink).getcode()
print x
if(x == 200):
col = "A"+str(item)
else:
col = "B"+str(item)
sheet[col] = actuallink
book_name = series+"_"+str(season)+".xlsx"
book.save(book_name)