Skip to content

A simple framework for web scraping brazilian mobile phone carriers

Notifications You must be signed in to change notification settings

felipek/Consumo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consumo Framework

Consumo is a simple and straightforward framework to create snippets of web scrapers to obtain data from brazilian mobile phone carriers. This project was NOT created to be used for illegal purposes. Please use it at your own risk.

Components

Python Framework

Base class: ConsumoAbstract. Subclass this base class to create new scrapers.

UNIX CLI

The Python module can also be used as a UNIX program. Here is the command line interface:

$ Consumo.py -h
Usage: Consumo.py -l || -c <carrier> -u <username> -p <password>
-l  --list       Lists available carriers
-c  --carrier    Uses a specific <carrier>
-u  --username   Uses username <username>
-p  --password   Uses password <password>
-h  --help	     This help

Web service (Django)

The project also contains a very tiny Web service (REST) interface. All the Web service stuff is abstracted away via a Django module. Only two methods are supported:

  • consumo/list to list all the available carriers.
  • consumo/<carrier> to request a given carrier data.

Two parameters are required: username and password. This Web service might change in the feature.

About

A simple framework for web scraping brazilian mobile phone carriers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages