https://github.com/yukari0371/yahoonews-scraper
Scrape Yahoo News XML
https://github.com/yukari0371/yahoonews-scraper
scraper yahoo
Last synced: 25 days ago
JSON representation
Scrape Yahoo News XML
- Host: GitHub
- URL: https://github.com/yukari0371/yahoonews-scraper
- Owner: yukari0371
- License: mit
- Created: 2025-03-14T09:58:42.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-03-15T01:55:26.000Z (7 months ago)
- Last Synced: 2025-06-12T21:54:50.979Z (4 months ago)
- Topics: scraper, yahoo
- Language: TypeScript
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yahooNews-scraper
Scrape Yahoo News XML### Usage
```ts
import { yahooNews } from "./dist/index";(async() => {
const result = await yahooNews.get("it");
if (result.status === "error") {
return console.error(result.message);
} else {
console.log(result)
}
})();
```### Result
```
{
"status": "success",
"resData": [
{
"title": "タイトル1",
"link": "https://example.com/link1",
"pubDate": "Fri, 14 Mar 2025 09:35:13 GMT",
"image": "https://example.com/image1.jpg",
"comments": "https://example.com/comments1",
"description": "内容1の詳細が書かれた部分。"
},
{
"title": "タイトル2",
"link": "https://example.com/link2",
"pubDate": "Fri, 14 Mar 2025 09:30:11 GMT",
"image": "https://example.com/image2.jpg",
"comments": "https://example.com/comments2",
"description": "内容2の詳細が書かれた部分。"
}
]
}
```