semvec/pypi-packages huggingface dataset:
pyytdata 0.3.0
A python library which provides all possible metadata of YouTube videos.
License: MIT
Requires Python: >=3.7
Keywords: youtube-apirecommend-youtube-videos,youtube-data,python,wrapper,youtube-data-api-v3,youtube-api-wrapper,youtube-api-v3

pyytdata
========

A python library which provides metadata of YouTube videos.

.. image:: https://img.shields.io/pypi/v/pyytdata
   :target: https://pypi.python.org/pypi/pyytdata/

.. image:: https://github.com/Agent-Hellboy/YouTubeDataApi_Wrapper/actions/workflows/build.yml/badge.svg
    :target: https://github.com/Agent-Hellboy/YouTubeDataApi_Wrapper/

.. image:: https://img.shields.io/pypi/pyversions/pyytdata.svg
   :target: https://pypi.python.org/pypi/pyytdata/

.. image:: https://img.shields.io/pypi/l/pyytdata.svg
   :target: https://pypi.python.org/pypi/pyytdata/

.. image:: https://pepy.tech/badge/pyytdata
   :target: https://pepy.tech/project/pyytdata

.. image:: https://img.shields.io/pypi/format/pyytdata.svg
   :target: https://pypi.python.org/pypi/pyytdata/

.. image:: https://coveralls.io/repos/github/Agent-Hellboy/pyytdata/badge.svg
   :target: https://coveralls.io/github/Agent-Hellboy/pyytdata

Prerequisites
-------------

- Get the youtube data v3 api key from https://console.developers.google.com/apis/
- Set environment variable API\_KEY='Your YoutubeDatav3 API key'


Installation
------------

    for stable version
       - pip install pyytdata

    for current_version
       - pip install git+https://github.com/Agent-Hellboy/pyytdata.git


Using
-----

   Public APIs
   get_vid_info_from_url -> Return Video Info from URL
   get_video_info -> Return Video Info from video_id
   get_channel_info -> Return Channel Info from channel name
   get_channel_stat_by_name -> Return channel stat from channel name
   get_video_stat_by_ID -> Return Video stat from vide_id

Other APIs
.. code-block:: python


    >>> from pyytdata import PyYtData
    >>> obj=PyYtData('flask',1)
    >>> vid=obj.get_videoinfo()


General Info
------------
python-client for
https://developers.google.com/youtube/v3/docs/channels


Contributing
------------

Pull requests are welcome. For major changes, please open an issue first
to discuss what you would like to change.
newsgather 0.2.0
Get the normalized latest news from (almost) any website
License: MIT
Requires Python: >=3.7,<4.0
Keywords: News,RSS,Scraping,Data Mining

# Newscatcher
Programmatically collect normalized news from (almost) any website.
By [newscatcherapi.com][1].

## Demo


## Motivation
While working on newscatcherapi -- JSON API to query the news articles,
I came up with an idea to make a simple Python package that would allow
to easily grab the live news data. 

When I used to be a junior data scientist working on my own side projects,
it was difficult for me to operate with external data sources. I knew Python
quite well, but in most cases it was not enough to build proper data pipelines
that required gathering data on my own. 

Even though I do not recommend to use this package for any production systems, I believe that it should be enough to test your assumptions and build some MVPs.

## Installation
`pip install newscatcher`

## Tech/framework used
The package itself is nothing more than a SQLite database with 
RSS feed endpoints for each website and some basic wrapper of
[feedparser][2].

## Code Example/Documentation
Let's review all possible usage of the package. 

In its core, it has a class called *Newscatcher*. This class is all you need in order to get latest news.

After installing your package, import the class:

`from newscatcher import Newscatcher`
 
Now you just need to put a url of a desired news source as an input into our class. 
**Please take the base form url of a website** (without `www.`,neither `https://`, nor `/` at the end of url).

For example: “nytimes”.com, “news.ycombinator.com” or “theverge.com”.

`news_source = Newscatcher('blackfaldslife.com')`

If you have done it right and the source that you chose is presented in our database, you will get a variable with 3 components and 1 method:

- `news_source.website` -- the same string that you entered inside the class.
- `news_source.news` -- a list of a feedparser dictionary with latest news presented on the website. 
- `news_source.headlines` -- a list with latest headlines presented on the website.
- `news_source.print_headlines()` -- print headlines of all latest articles.

Each element of *news* list is a json object with all relevant and available information regarding an article. If you want to know more about the attributes that you can extract from this json, go check the official documentation of feedparser following this link: [feedparser\_attributes][3]. You can find everything that begins with *entries[i]*. But be aware that not all the attributes are provided by the news website. 

If for some reason you do not like classes, you can always import 2 main methods and use them separately.

`from newscatcher import get_news`
`news = get_news('wired.co.uk')`

or

`from newscatcher import get_headlines`
`news = get_headlines('wired.co.uk')`


## Licence
MIT


[1]:	%3Chttps://newscatcherapi.com/%3E
[2]:	%3Chttps://pythonhosted.org/feedparser/index.html%3E
[3]:	%3Chttps://pythonhosted.org/feedparser/reference.html%3E