Socket
Socket
Sign inDemoInstall

tr-news-scraper

Package Overview
Dependencies
31
Maintainers
2
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tr-news-scraper

tr-news-scraper is a Python library that allows users to scrape Turkish news articles based on specified keywords from multiple sources. It gather news content from various news websites, enabling users to extract valuable information for analysis or research purposes.


Maintainers
2

Readme

tr-news-scraper

tr-news-scraper is a Python library that allows users to scrape Turkish news articles based on specified keywords from multiple sources. It gather news content from various news websites, enabling users to extract valuable information for analysis or research purposes.

Installation

Use the package manager pip to install this library.

pip install tr-news-scraper

Usage

Scrape news articles based on a single or multiple keywords. scrape() method returns a pandas dataframe.


from tr_news_scraper import tr_news_scraper as tns

scraper = tns.NewsScraper() # You can define page_limit parameter here. Default value is 20.
single_keyword_news = scraper.scrape(["keyword"]) # You can define keyword or keywords here.
multiple_keywords_news = scraper.scrape(["keyword_1", "keyword_2", "keyword_3"]) # You can define keyword or keywords here.
titleauthorspublish_datetextkeywordstop_imgurlmeta_urlmeta_imgmeta_published_datemeta_descriptionmeta_keywordsdatekeyword
title_1authors_1publish_date_1text_1keywords_1top_img_1url_1meta_url_1meta_img_1meta_published_date_1meta_description_1meta_keywords_1date_1keyword_1
title_2authors_2publish_date_2text_2keywords_2top_img_2url_2meta_url_2meta_img_2meta_published_date_2meta_description_2meta_keywords_2date_2keyword_2
title_3authors_3publish_date_3text_3keywords_3top_img_3url_3meta_url_3meta_img_3meta_published_date_3meta_description_3meta_keywords_3date_3keyword_3
title_4authors_4publish_date_4text_4keywords_4top_img_4url_4meta_url_4meta_img_4meta_published_date_4meta_description_4meta_keywords_4date_4keyword_4
title_5authors_5publish_date_5text_5keywords_5top_img_5url_5meta_url_5meta_img_5meta_published_date_5meta_description_5meta_keywords_5date_5keyword_5

Sources

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc