FCC Complaint Data API Wrapper
Project description
# fcc_complaints FCC Complaints is a library to wrap the FCC’s Consumer Complaints Data. The authors of this library have no affiliation with the FCC or the US government.
Individual informal consumer complaint data detailing complaints filed with the Consumer Help Center beginning October 31, 2014. This data represents information selected by the consumer. The FCC does not verify the facts alleged in these complaints.[1](https://opendata.fcc.gov/Consumer/CGB-Consumer-Complaints-Data/3xyp-aqkj)
This api and library aim to make it easier to look up complaints made against numbers to the FCC.
The number of requests you can make on the data is limited unless you sign up for an API token.
# Installation
` pip install fcc_complaints `
# Configuration Setup a file in either ~/.fcc_complaints or /etc/default/fcc_complaints with your FCC API settings. Sign up at the FCC website for a token: https://opendata.fcc.gov/profile/app_tokens
The configuration file should look something like this: ` [auth] app_token = {{YOUR APP TOKEN}} username = {{YOUR USERNAME}} `
This is not required but allows you to not have to pass it in every time you initialize the api. You can also provide the API tokens when you initialize the API. If no tokens are provided you can still use the API but you will be limited in how many requests you can make by the FCC.
# Usage
` from fcc_complaints import FccApi api = FccApi() r = api.query(caller_id_number='0000000000') `
The library will handling formatting of dates, phone numbers, etc. See the api documentation for more information on options.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file fcc_complaints-0.1.2.tar.gz
.
File metadata
- Download URL: fcc_complaints-0.1.2.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64f118d5ab475cd840c9bd3cd4b16c2f49299bc3a9d2ae11ae35f7d24470d5b9 |
|
MD5 | bf51016af66e6bd3a44acfad9e9ca667 |
|
BLAKE2b-256 | ef991af242c25aa41374523fc0de25c05e0dd5bc96c5b2c7d5558629f14c810b |