Title
Kompas Scraper
Descrption
- With kompas Scraper you can scrape search results and extract the contents produced by the search result.
- In kompas scraper it will scrape the data present of the website and give json data which contains the details of the contents on the website.
- The scraper gives information of the title of the article, article content, links, publish date etc.
JSON sample data
{
"Scraper_repeat_data_0": [
{
"trenLatest_item": [
{
"link": "https://health.kompas.com/read/2021/11/10/120000368/punya-gejala-mirip-ini-beda-bronkitis-dan-pneumonia",
"text": "\n\n\n\n\n\n\nHEALTH\n10/11/2021, 12:00 WIB\n\nPunya Gejala Mirip, Ini Beda Bronkitis dan Pneumonia\n\n\n"
},
{
"link": "https://health.kompas.com/read/2021/11/10/103100268/apa-beda-nyeri-dada-karena-gerd-dan-serangan-jantung-",
"text": "\n\n\n\n\n\n\nHEALTH\n10/11/2021, 10:31 WIB\n\nApa Beda Nyeri Dada karena GERD dan Serangan Jantung?\n\n\n"
},
{
"link": "https://health.kompas.com/read/2021/11/10/090100968/6-ciri-ciri-hamil-anak-kembar",
"text": "\n\n\n\n\n\n\nHEALTH\n10/11/2021, 09:01 WIB\n\n6 Ciri-ciri Hamil Anak Kembar\n\n\n"
}
]
}
Run Scraper
from kompas_scraper import *
link="https://www.kompas.com/food"
data=run_kompas_scraper(link)
How it works?
- It takes URL of kompas page with a search keyword to scrape the data.
- It generates the json data which contains the information of the kompas search result.
Examples
Below are some of the examples of URLs using which you can scrape:
Queries/ Feedback
If you have some queries or feedback please contact us at following
Telegram
Email
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
kompas_scraper-1.0.1.tar.gz
(2.9 kB
view details)
File details
Details for the file kompas_scraper-1.0.1.tar.gz.
File metadata
- Download URL: kompas_scraper-1.0.1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3b5337371f3a08e38ba7d73bdcc24550ea9b56943b876290a421a9a197ff3c3d
|
|
| MD5 |
4d2d11528cbea4e808208482ab375df7
|
|
| BLAKE2b-256 |
0e9817d1c1d75c1dc5e4447c24ea5778a357bcfc7997a612ad25f162ef20da91
|