Web Scraping Library
Project description
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.
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.
- It gives the every detail present inside website in the form of json data.
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
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
kompas_scraper-1.0.0.tar.gz
(2.9 kB
view details)
File details
Details for the file kompas_scraper-1.0.0.tar.gz
.
File metadata
- Download URL: kompas_scraper-1.0.0.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 | 82b18d5a76b1adec11c56ab2ab6909df1c3aa1d55cb864cf2dbd9097e2b965d5 |
|
MD5 | 18587dcdd4fca4a36b1b93687ca666b3 |
|
BLAKE2b-256 | 616edafdc5e7fbcc22e24bc4af64ca2058b7a917df0f8d0ebd92d9e18e906c89 |