semvec/pypi-packages huggingface dataset:
python-granatum 0.0.6
A Python wrapper for Granatum Financeiro
Requires Python: >=3.6

# python-granatum

## Introduction

**python-granatum** is a Python wrapper for [Granatum Financeiro](https://www.granatum.com.br/financeiro/).

## Quick Start

Fill in the <values> in this script to get a [pandas.DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html) representation of transactions for a given account.

```
from datetime import date

from granatum import Granatum


granatum = Granatum()

email = '<your email>'
password = '<your password>'

granatum.login(email, password)

end_date = date(2019, 8, 31)
start_date = date(2019, 8, 1)
filters = {'conta_id': ['<name of the account>']}

granatum.exportar(end_date, start_date, filters, 'pandas.DataFrame')
```
scamnumberscraper 0.0.4
Scraper for multiple scam number sites
Requires Python: >=3.6

# ScamNumberScraper

## Installation

``` bash

pip install scamnumberscraper

```

## Sources

### List
-   [x] [FauxNumeros.fr](http://fauxnumeros.fr)

### Page
-   [x] [Dixhuit](http://www.dixhuit.fr)
-   [x] [Arnaques-internet](http://www.arnaques-internet.info/numero-telephone.html)
-   [x] [Signal Arnaques](https://www.signal-arnaques.com/phone-fraud)
-   [x] [Assiste](https://assiste.com/Arnaques_telephoniques/index_01.html)

### Search (details)

-   [x] [Dixhuit](http://www.dixhuit.fr)
-   [x] [ARNAQUE-SMS](https://www.arnaque-sms.com)
-   [ ] [Numero inconnu](https://www.numeroinconnu.fr)
-   [ ] [DOIS-JE REPONDRE?](https://www.doisjerepondre.fr)
-   [ ] [recherche-inverse](https://www.recherche-inverse.com)
-   [ ] [Signal Arnaques](https://www.signal-arnaques.com/phone-fraud)
-   [ ] [tellows](https://www.tellows.fr/)
-   [ ] [Arnaque-telephone](https://arnaque-telephone.com/)
-   [ ] [quiappele.fr](https://quiappele.fr/)
-   [ ] [APPELINCONNU.fr](https://appelinconnu.fr/)

## Model

This project uses many providers

For all providers, we can identify 3 kinds of provider

-   ScamNumberPageScraper : Website that uses a pagination system, each page display an list of scam number
-   ScamNumberListScraper : Website that display all scam numbers on a single page
-   ScamNumberSearchScraper : Website that use an search system, scrape the details page to get more informations like owner, list of comment, etc. (depend on the provider)

![Screenshot](https://raw.githubusercontent.com/Harkame/ScamNumberScraper/dev/scamnumberscraper.png "ScamNumberScraper class diagram")

## Usage

### ScamNumberListScraper

``` python

import scamnumberscraper

scraper = scamnumberscraper.FauxNumerosScraper()

numbers = scraper.list()

for number in numbers:
    print(number)

"""

0796242217
0126534579
0185326870
0190005999

...

"""

```

### ScamNumberPageScraper

:boom: Make sure to make an pause between all requests like with time.sleep(), some websites can detect bot and block other requests :boom:

``` python

import time

import scamnumberscraper

scraper = scamnumberscraper.DixHuitScraper()

for index in range(1, scraper.count() + 1):
    page = scraper.page(index)
    print(page)
    time.sleep(2)

"""

['0559989827', '0559989827', '0559989827', '0559989827', '0681269661', '0531483000', '0771722270', '0899566300', '0642499488', '0642499488']

...

"""

page = scraper.page(42)
print(page)

"""

['0669349263', '00359095673', '0180818903', '0706234221', '0899379624', '0805714011', '0322191813', '0495854641', '0385807285', '0141911453']

"""

```

### ScamNumberSearchScraper

``` python

import scamnumberscraper

scraper = scamnumberscraper.DixHuitScraper()

print(scraper.search("0559989827"))

"""

"""

```

## TODO

-   Fix encoding (git bash)
-   Rest of Search
-   Better NumberDetails model ?