DEV Community

Cover image for How to get Announcement from Binance ASAP?
Brave
Brave

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
)
ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: plzbugmenot/how to get announcement from binance asap ha - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ” ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: plzbugmenot/how to get announcement from binance asap ha - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”

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 (1)

ðŸ“Ē āđāļˆāđ‰āļ‡āđ€āļ•āļ·āļ­āļ™: plzbugmenot/how to get announcement from binance asap ha - āļŠāļĢāļļāļ›āļ”āļĢāļēāļĄāđˆāļēāļĨāđˆāļēāļŠāļļāļ”
 
retinaboss profile image
Dream Love • • Edited

Share your code let’s see

Some comments may only be visible to logged-in visitors. Sign in to view all comments.