semvec/pypi-packages huggingface dataset:
django-ok-redirects 0.4.0
Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.
License: MIT
Keywords: python,redirects,redirects-models,django

==================================
django-ok-redirects |PyPI version|
==================================

|Upload Python Package| |Code Health| |Python Versions| |PyPI downloads| |license| |Project Status|

Simple Redirects App, which is particularly useful in the cases where you want to update some existing URLs without compromising your Website SEO.

Installation
============

Install with pip:

.. code:: shell

    $ pip install django-ok-redirects

Update INSTALLED_APPS:

.. code:: python

    INSTALLED_APPS = [
        ...
        'ok_redirects',
        ...
    ]

Make migrations

.. code:: shell

    $ python manage.py migrate


Available settings
==================

``REDIRECTS_IGNORE_PATH_PREFIXES`` - Tuple of path prefixes to ignore.


For example:

.. code:: python

    REDIRECTS_IGNORE_PATH_PREFIXES = (
        '/api/v1/',
        '/uploads/',
        '/static/',
    )


Basic example to use:
=====================

Add the redirects middleware to the MIDDLEWARE configuration:
-------------------------------------------------------------

.. code:: python

    MIDDLEWARE = [
        ...

        'ok_redirects.middleware.RedirectMiddleware'
    ]


.. |PyPI version| image:: https://badge.fury.io/py/django-ok-redirects.svg
   :target: https://badge.fury.io/py/django-ok-redirects
.. |Upload Python Package| image:: https://github.com/LowerDeez/ok-redirects/workflows/Upload%20Python%20Package/badge.svg
   :target: https://github.com/LowerDeez/ok-redirects/
   :alt: Build status
.. |Code Health| image:: https://api.codacy.com/project/badge/Grade/e5078569e40d428283d17efa0ebf9d19
   :target: https://www.codacy.com/app/LowerDeez/ok-redirects
   :alt: Code health
.. |Python Versions| image:: https://img.shields.io/pypi/pyversions/django-ok-redirects.svg
   :target: https://pypi.org/project/django-ok-redirects/
   :alt: Python versions
.. |license| image:: https://img.shields.io/pypi/l/django-ok-redirects.svg
   :alt: Software license
   :target: https://github.com/LowerDeez/ok-redirects/blob/master/LICENSE
.. |PyPI downloads| image:: https://img.shields.io/pypi/dm/django-ok-redirects.svg
   :alt: PyPI downloads
.. |Project Status| image:: https://img.shields.io/pypi/status/django-ok-redirects.svg
   :target: https://pypi.org/project/django-ok-redirects/  
   :alt: Project Status
ecb-scraper 0.1.3
Scraper for ECB press conferences
License: MIT
Requires Python: >=3.9,<3.12

<h1 align="center">ECB Scraper</h1>

<p align="center">
    <img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/ecb-scraper">
    <br>
    <a href="https://pypi.org/project/ecb-scraper/"><img src="https://badge.fury.io/py/ecb-scraper.svg" alt="PyPI version"></a>
    <img src="https://img.shields.io/badge/license-MIT-green.svg" alt="License">
</p>

ECB Scraper is a Python package for scraping European Central Bank press conference transcripts. It allows for easy extraction of press conference details including dates and URLs, offering a streamlined way to access ECB statements and Q&A sessions over the years.

## Installation

Install `ecb-scraper` via pip:

```bash
pip install ecb-scraper
```

## Usage

### CLI

The ECB Scraper also provides a Command Line Interface (CLI) for fetching ECB press conferences without needing to write any Python code. Here's how you can use it:

Arguments
- --start-year: Specify the start year for fetching the conferences. If not provided, the script will use 1998.
- --end-year: Specify the end year for fetching the conferences. If not provided, the current year is used.
- --output-file: Required. The path to the file where the fetched data will be saved (CSV or JSON).

Default values
```bash
ecb-scraper --output-file conferences.json
```

Speific dates
```bash
ecb-scraper --start-year 2010 --end-year 2020 --output-file conferences.json
```



### Python

The ECB Scraper can also be used as a Python package. Here's how you can use it:

```python
from ecb_scraper import load_ecb_conferences

# DataFrame with columns ['date', 'title', 'link', 'text']
conferences = load_ecb_conferences(start_year=2005, end_year=2020)
```