DEV Community

Cover image for How to get Announcement from Binance ASAP?
Jason Smith
Jason Smith

Posted on

How to get Announcement from Binance ASAP?

Hello, coders.

I am currently working on a project.
I need to get new announcements from "https://www.binance.com/en/support/announcement/new-cryptocurrency-listing?c=48" asap.
I want to get new announcements within 1-2 seconds.

The current codebase is implemented with Python Scrapping.

URL = "https://www.binance.com/en/support/announcement/new-cryptocurrency-listing?c=48"
response = await self.fetch_with_retry(
    f"http://api.scrape.do/?token={API_KEY}&url={URL}",
    GET_MODE,
    headers=HEADERS
)
Enter fullscreen mode Exit fullscreen mode

But it takes over 10 seconds.

I have two questions:

1) Is it possible to get new announcements using API instead of scraping?

2) How can I reduce the time by using scraping?

I hope hear from you.

python Binance Announcement scarpping API

Top comments (0)