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

How to get Announcement from Binance ASAP?

Susan Sarandon
Release: 2024-12-31 20:06:17
Original
238 people have browsed it

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
)
Copy after login

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!

source:dev.to
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template