-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.py
More file actions
29 lines (26 loc) · 1.33 KB
/
Process.py
File metadata and controls
29 lines (26 loc) · 1.33 KB
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
########################################################################
## @@@@@@ @@@@@@ @ @ @@@@@@ @ @@@@@@ ##
## @ @ @ @ @ @ @ ##
## @ @@@@ @ @ @ @@@@ @ @@@@ ##
## @ @ @ @ @ @ @ @ @ ##
## @ @ @ @ @ @ @ @ @ @ ##
## @@@@ @@@@@@ @ @ @@@@@@@ @@@@@@@@ @@@@@@ ##
## ##
## Copy Right by JEWELE ##
## ##
########################################################################
#It's will Dynamically changed
import requests
boxurl = requests.get("http://www.imdb.com/chart/boxoffice")
text = boxurl.text
boxurl.title = text[text.find('<tbody>')+7:text.find('<div class="reported text-smaller">')][:20557]
boxmovie = boxurl.title.split('<td class="titleColumn">')
link = []
for name in range(1,11):
boxmovie1 = boxmovie[name].split('<a href=')
boxmovie2 = boxmovie1[1].split('/')
boxmovie3 = boxmovie2[2].split('"')
final = 'http://www.imdb.com/'+'title/'+boxmovie3[0]
link.append(final)
print(link)
#print(link[1])