Issue
So I have been playing around with webscraping and basically what I am trying to is to scrape down a timer that is right now that is shown etc in picture below:
What I want to scrape is the 00 : 14 : 40 : 38 and what it does is that every second it counts down but basically what I wish is that whenever I do a webscrape, Just grab the value that is currently right now.
However I coded this and it gave ma a value of None:
bs4 = soup(requests.get(url).text, "html.parser")
test = bs4.find("span",{'class':'countdown-row countdown-amount'})
print(test)
could that be an issue because of the countdown or? Because whenever I do print(bs4) it will not be shown in the print the span class but on the website there is...
Solution
Okey, So I managed to understand that the data-code was actually a Epoch time which only needed to be converted to a real time! That was the solve!
Answered By - CDNthe2nd
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.