Hi,
i m using requests and bs4 for https://www.binance.com/en/support/annou...9?navId=49 this website. get request per 3 seconds for detecting latest news.
My codes ;
i m using requests and bs4 for https://www.binance.com/en/support/annou...9?navId=49 this website. get request per 3 seconds for detecting latest news.
My codes ;
latest_news_url = ""
while True:
time.sleep(3)
source =
requests.get("https://www.binance.com/en/support/announcement/c-49?
avId=49")
soup = BeautifulSoup(source.text, 'html.parser')
...
...
lastest_news_url_detected = ...
if (lastest_news_url_detected == latest_news_url):
print("no news detected")
print(current_time)
else:
latest_news_url = lastest_news_url_detected
print (shared time)
print(current time)my current time is right,also website shared time is right. but my code working wrong..Its detecting after 7-8mins. For example latest news shared at 20.00- my console;Output:19.59.57 -no news detected
20.00.00 no news detected
20.00.03 no news detected
..
..
..
20.08.00 detect! shared time = 20.00.00I hope I was able to explain my problem. What should i do ? Why is this happening? Cache? cookies? ..?
