semvec/pypi-packages huggingface dataset:
azureipcheck 1.0.1
A Python CLI tool to check service tags for Azure IPs
License: MIT
Requires Python: >=3.8,<4.0

# azureipcheck

<div align="center">
    <img src="https://img.shields.io/pypi/v/azureipcheck"/>
    <img src="https://img.shields.io/pypi/pyversions/azureipcheck"/>
    <img src="https://img.shields.io/pypi/l/azureipcheck"/>
    <a href="https://twitter.com/mcohmi"><img src="https://img.shields.io/twitter/follow/mcohmi.svg?style=plastic"/></a><br>
</div>

A Python [Typer-based](https://github.com/tiangolo/typer) CLI tool to check IP addresses against Azure services. It also uses [Rich](https://github.com/willmcgugan/rich) for some dope console output. Additionally, it makes use of [Clumper](https://github.com/koaning/clumper) for parsing through the Azure Service Tag JSON files.


## Installation

The recommended method of installation is with [pipx](https://github.com/pipxproject/pipx). 

```
pipx install azureipcheck
```

However, you can install the normal way from PyPi with `python3 -m pip install azureipcheck`.

## Usage

You should first run `azureipcheck update` to download the latest Service Tag JSON files. After downloading the files locally, you can run `azureipcheck check <ip>`, where `ip` can be a single address or CIDR (i.e., `51.8.227.233` or `51.8.227.233/24`). 

Checking a CIDR does not check every IP in the network provided. It simply checks to see if the network is in a subnet of any of the Azure network ranges. Therefore `51.8.227.233/24` may return matches but `51.8.227.233/8` would not. 


### Built With
- Typer: https://github.com/tiangolo/typer
- Rich: https://github.com/willmcgugan/rich
- Clumper: https://github.com/koaning/clumper
- Gazpacho: https://github.com/maxhumber/gazpacho
- Cookiecutter-RichTyper: https://github.com/daddycocoaman/cookiecutter-richtyper

Inspired by https://github.com/deanobalino/azureip
newscraping 0.1.2
Web scraping of financial headlines
License: MIT
Requires Python: >=3.8,<4.0
Keywords: webscraping,news

# Newscraping

[
![PyPI](https://img.shields.io/pypi/v/newscraping)
![PyPI](https://img.shields.io/pypi/l/newscraping)
](https://pypi.org/project/newscraping/)

This package makes webscraping of financial headlines easy. 

## Suported sources:

- reuters.com/finance/markets
- ft.com/markets

## Installation

Newscraping can be installed from PyPI using `pip` or your package manager of choice:

```
pip install newscraping
```

## Usage

### CLI

You can use newscraping as a CLI tool using the `newscraping` command.  
The package will get the latest headline from reuters and print is in the terminal.  
This is mainly for testing purposes. 

### Python script

You can import the newscraping package in your python project using:

```
from newscraping import news
```

And then use it as:

```
df = news(newspaper="reuters", n_articles=-1, early_date="2020-01-01", verbose=0)
```

- With the default parameters (see above), only the last headline from reuters will be returned
- newspaper argument must be in ["reuters", "financial times"]
- n_articles argument is the number of articles to return, starting with the most recent ones
- early_date argument is the publication date of the earliest article to return
- If both n_articles and early_date are provided, the script will stop scraping when the any condition is met
- Pass verbose=1 to print in the progress of websraping (current page and publication date)

### List of available sources

You can get the list of available sources this package is configured for calling:

```
from newscraping import newspapers
available_sources = newspapers()
```