semvec/pypi-packages huggingface dataset:
Scraper-Package-DSC 0.0.1
News scraper package
Requires Python: >=3.6

# Scraper Package

This news scraper package provides three functions:

1) NewsAPI_Pckg.py
Takes the following parameters:
- API key
- source domain (eg: Reuters.com)
- range of dates (from and to) as an array

Range of dates must be in this format:
#example
dates = [
    "11/10/20 - 12/10/20",
    "05/04/20 - "05/04/20"
]

Produces:
Results of "everthing" search for one particular news source through NewsAPI and outputs results into a json object 

2) reuters.py 
- Requires selinium driver installation: https://chromedriver.chromium.org/downloads
- Navigates to Reuters world news site
- Collects all headlines, summaries, and article URLs from each article starting with the most recent stories, for specified number of pages
- Reuters World website lists 10 articles per page, in reverse chronological order typically going back about a year from the current date
- Scrolls through X number of pages to repeat the process for older news (1 page = 10 articles)
    -> Enter this as a parameter in your usage script 
- see https://www.reuters.com/news/world for page format 
- Saves data to a JSON object

3) nyt.py
- enter a specific article's URL from the New York Times as a parameter
- output is a dictionary with the summary and full text article associated with the URL

# see example_usage.py for sample code using this package
sabacan 0.0.4
Command Line Interface for various application servers
Requires Python: >=3.5
Keywords: plantuml,redpen

#######
sabacan
#######

Sabacan is a command line interface using various application server APIs.
Currently sabacan support the following server APIs.

* `PlantUML Server`_
* `RedPen Server`_

Sabacan has the following design concept:

* **Command line option compatibility**. All subcommand options are compatible
  to the options of CLI commands corresponding to application servers.
  This ease to replace using the commands by sabacan.
* **Minimum dependencies**. Sabacan uses only Python standard libraries.
  This ease to export sabacan into environments unavailable to use package
  managers.

.. _PlantUML Server: http://plantuml.com/
.. _RedPen Server: http://redpen.cc/

Installation
============

Use pip::

    pip install sabacan

or use setup.py::

    python3 setup.py install

These will install sabacan command.

Usage
=====

Sabacan command takes a subcommand.

Generate UML by PlanUML server::

    sabacan -u http://localhost/plantuml plantuml -tpng sequence.uml

Validate document by RedPen::

    sabacan -u http://X.X.X.X redpen -r json document.md

Enable to specify the server URL by environment variables::

    export SABACAN_REDPEN_URL=http://localhost/redpen:8080
    sabacan redpen -r plain2 document.rst
    sabacan redpen -r xml document.txt
diyanet 0.1.2
Diyanet API
Requires Python: >=3.7

# Diyanet

Python interface for internal API of Turkey's Presidency of Religious
Affairs to get prayer times.

## API
### Units
- `GeographicUnit`, base class for all geographic units. All units share these members
    * `idx`: `int` => Internal ID (to use in API)
    * `name`: `str` => Name of the country
- `Country`, unit for countries
- `State`, unit for states (if no states present in given country, this will be same with `Country`)
    * `country`: `Country` => A link to it's country
- `Region`, unit for citites/regions
    * `url`: `str` => URL that points out to prayer times page for that specific region
    * `state`: `State` => A link to it's state
    * `country`: `Country` => A link to it's country
- `PrayerTimes`, unit for prayer times of a day
    * `fajr`: `time`
    * `sunrise`: `time`
    * `dhuhr`: `time`
    * `asr`: `time`
    * `maghrib`: `time`
    * `isha`: `time`

### API
All methods described below are members of `Diyanet` class
- `get_countries`: `() -> Iterator[Country]` => Iterates through all available countries
- `get_states`: `(country: Country) -> Iterator[State]` => Iterates through all available states
- `get_regions`: `(state: State) -> Iterator[Region]` => Iterates through all available regions
- `get_country` / `get_state`/ `get_region` => Takes a `name` (and depending on the context, a geographical unit that covers itself) and returns if it finds something that matches with given name. If there isn't any match, it raises a `ValueError`.
- `get_times`: `(region: Region) -> PrayerTimes` => Returns prayer times for the current day