Home >Backend Development >Python Tutorial >How to get Announcement from Binance ASAP?

How to get Announcement from Binance ASAP?

Susan Sarandon
Susan SarandonOriginal
2024-12-31 20:06:17249browse

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
)

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

The above is the detailed content of How to get Announcement from Binance ASAP?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn