How to Access Yahoo Finance News Articles API – Any Working Methods? or What’s the Best Way to Access

20 Replies, 1858 Views

Scraping’s the only real option now. Yahoo locked down their API years ago.

Use `requests-html` for Python—it handles JS rendering, which Yahoo’s site uses heavily. Here’s a basic example:
```python
from requests_html import HTMLSession
session = HTMLSession()
r = session.get('https://finance.yahoo.com/topic/latest-news')
r.html.render()
```
Pain, but it works.

Messages In This Thread



Users browsing this thread: 1 Guest(s)