https://github.com/zmoog/ifq
Library to download www.ilfattoquotidiano.it issues in PDF.
https://github.com/zmoog/ifq
Last synced: 4 months ago
JSON representation
Library to download www.ilfattoquotidiano.it issues in PDF.
- Host: GitHub
- URL: https://github.com/zmoog/ifq
- Owner: zmoog
- License: apache-2.0
- Created: 2020-02-14T23:04:55.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-03-12T23:51:37.000Z (over 1 year ago)
- Last Synced: 2025-05-01T20:18:11.544Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 57.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ifq
[](https://pypi.org/project/ifq/)
[](https://github.com/zmoog/ifq/releases)
[](https://github.com/zmoog/ifq/actions/workflows/test.yml)
[](https://github.com/zmoog/ifq/blob/master/LICENSE)
CLI tool and Python library to download PDF issues of ilfattoquotidiano.it
## Installation
Install this tool using `pip`:
```bash
pip install ifq
```
## Usage
Download the IFQ issue for Jan, 2nd 2025:
```sh
# Requires a valid subscription to the newspaper
export IFQ_USERNAME="[your username]"
export IFQ_PASSWORD="[your password]"
$ ifq issues download 2025-01-02
Downloading issue for 2025-01-02 00:00:00 to /Users/zmoog/code/projects/zmoog/ifq
Downloaded issue to /Users/zmoog/code/projects/zmoog/ifq/2025-01-02.pdf
$ file 2025-01-02.pdf
2025-01-02.pdf: PDF document, version 1.7
```
For help, run:
```bash
ifq --help
```
You can also use:
```bash
python -m ifq --help
```
## Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
```bash
cd ifq
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```