Skip to content

Commit

Permalink
Show Status
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratik-Sanghani committed Jul 19, 2018
1 parent 8417f60 commit 2337c00
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions windows/benji.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@ def main():
end = str(i).index("title=")
soup_level2.append("https://in.bookmyshow.com"+str(i)[start+6:end-2])

show_status_raw = soup.find_all('div',attrs={'class':'popularity sa-data-plugin'})
for i in show_status_raw:
start = str(i).index("data-coming-soon=")
end = str(i).index('data-event-code')
data = str(i)[start+18:end-2]

if data == "false":
show_status_list.append("In Cinemas Now...")
if data == "true":
show_status_list.append("Coming Soon...")


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

0 comments on commit 2337c00

Please sign in to comment.