WEB Scraper for IT-Magazines.
Project description
itmagazines-webscraper
This libraly is a web scraper for web pages of following IT-Magazines.
Support magazine list
- 技術評論社
- Software Design
- WEB+DB PRESS
- CQ出版
- Interface
- トランジスタ技術
- 日経BP
- 日経ソフトウエア
- 日経Linux
Installaction
$ python -m pip install itmagazines-webscraper
Usage
Specify a magazine and execute
from pprint import pprint
from itmagazines_webscraper import ItMagazineType, scrape_magazine
magazines = scrape_magazine(ItMagazineType.SOFTWARE_DESIGN)
for magazine in magazines:
pprint(magazine.get_dict())
print(magazine.get_json())
Execute all
from pprint import pprint
from itmagazines_webscraper import scrape_magazines
magazines = scrape_magazines()
for magazine in magazines:
pprint(magazine.get_dict())
print(magazine.get_json())
Example: Retuned json data
{
"name": "日経Linux",
"number": "日経Linux20XX年X月号",
"price": "XXXX円",
"release_date": "20XX年X月X日",
"url": "https://info.nikkeibp.co.jp/media/LIN/",
"top_outlines": [
"【特集1】Linux学び直し",
"【特集2】Linux導入・活用法まで徹底紹介!"
],
"store_links": [
{
"name": "Amazon",
"link": "https://www.amazon.co.jp/dp/xxxxx"
},
{
"name": "Rakutenブックス",
"link": "https://books.rakuten.co.jp/rb/yyyyy/"
}
]
}
Data structure
| Detail | Summary |
|---|---|
| name | Magazine name. |
| number | Magazine name and volume number. |
| price | Price. |
| release_datee | Release date. |
| url | URL of web page. |
| top_outlines | Magazine outline list. |
| store_links | Store link list. |
store_links
| Detail | Summary |
|---|---|
| name | Store name. |
| url | URL of store web page. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file itmagazines-webscraper-0.1.0.tar.gz.
File metadata
- Download URL: itmagazines-webscraper-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18fd022a6a46e1693e7c601bb9a93c88096c5ec467869e19192d20e4562eb185
|
|
| MD5 |
b6ca2110183ed70e546ee67f8e0bce8b
|
|
| BLAKE2b-256 |
4e7f4e64f7c12d9299692d44032540847b4643f99b4c3db721f32195dbb48046
|