Skip to content

Commit

Permalink
All Shows Fetched.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratik-Sanghani committed Jul 19, 2018
1 parent 6d524f8 commit 8417f60
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion windows/benji.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,22 @@ def main():
print("Error")
speak.say("Sorry Graph can not be Plotted")
speak.runAndWait()


#Box Office Status
elif link[-1] == "boxoffice":
url="https://in.bookmyshow.com/"+ link[0] +"/movies/nowshowing"
r= requests.get(url)
soup = BeautifulSoup(r.content,'html.parser')

soup_level2=[]
show_status_list=[]
shows_list = soup.find_all('div',attrs={'class':'card-container wow fadeIn movie-card-container'})
for i in shows_list:
start = str(i).index("href=")
end = str(i).index("title=")
soup_level2.append("https://in.bookmyshow.com"+str(i)[start+6:end-2])


# elif put.startswith(search_pc):
# process=subprocess.Popen("dir /b/s "+link[1],shell=True,stdout=subprocess.PIPE)
# while True:
Expand Down

0 comments on commit 8417f60

Please sign in to comment.