Introduction
Naver News scraping library
Installation
pip install naverscrap
Usage
Single Query
from naverscrap import NaverScrap
ns = NaverScrap
df = ns.obtain_results("Tesla", "2020.03.04", "2020.04.04", 10, False)
#query(s), start_date, end_date, no. of results for each query, ascending (false by default)
Multiple Queries
from naverscrap import NaverScrap
ns = NaverScrap
queries = ["Tesla", "Facebook", "카카오"] # list of query
df = ns.obtain_results(queries, "2020.03.04", "2020.04.04", 10, False)
#query(s), start_date, end_date, no. of results for each query, ascending (false by default)
The output dataframe will be in:
| Column | Description |
|---|---|
| Item | Search Query |
| Date | Date of News Article |
| Newspaper | News Publication Company |
| Title of news | Title of news article |
| Link | Link to news article |
| Summary | Summary of the news article |
License
© 2021 Brendon Lim.
This repository is licensed under the MIT license.
See LICENSE for details.
Metadata
Release files for naverscrap 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| naverscrap-1.0.6.tar.gz | 4.0 kB | Without provenance | Details for naverscrap-1.0.6.tar.gz |
Security for naverscrap 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.