Provides processors for the itemloaders package, commonly used with scrapy.
Project description
Scrapy Processors
Scrapy Processors is a collection of Processor classes meant to work with the itemloaders package, commonly used with the scrapy webscraping framework.
These processors are meant to extend / replace the provided processors in the itemloaders package.
Additionally the provided Processor and ProcessorCollection classes can be extended to create custom processors.
Installation
To install Scrapy Processors, simply use pip:
$ pip install scrapy-processors
Built-in Processors
- CharWhitespacePadding
- Coalesce
- Date
- DateTime
- DateTimeExtrordinaire
- Demojize
- Emails
- ExtractDigits
- Flatten
- Join
- NormalizeNumericString
- NormalizeWhitespace
- PhoneNumbers
- PriceParser
- RemoveEmojis
- RemoveHTMLTags
- SelectJmes
- Socials
- StripQuotes
- TakeAll
- TakeAllTruthy
- TakeFirst
- TakeFirstTruthy
- Time
- ToFloat
- UnicodeEscape
Built-in Processor Collections
Table of Contents
- What's a Processor?
- What's Context?
- Subclassing Processor and ProcessorCollection
- Built-in ProcessorCollection Subclasses
- Built-in value-by-value processors
- Built-in iterable processors
Opening an Issue
If you encounter a problem with the project or have a feature request, you can open an issue to let us know.
To open an issue, please follow these steps:
- Go to the Issues tab on the github repository page.
- Click on the "New Issue" button.
- Provide a descriptive title for the issue.
- In the issue description, provide detailed information about the problem you are experiencing or the feature you are requesting.
- If applicable, include steps to reproduce the problem or any relevant code examples.
- Add appropriate labels to categorize the issue (e.g., bug, enhancement, documentation).
- Click on the "Submit new issue" button to create the issue.
Once you have opened an issue, our team will review it and provide assistance or discuss the requested feature.
Note: Before opening a new issue, please search the existing issues to see if a similar issue has already been reported. This helps avoid duplicates and allows us to focus on resolving existing problems.
Contributing
Thank you for considering contributing to this project! We welcome your contributions to help make this project better.
To contribute to this project, please follow these steps:
-
Fork the repository by clicking on the "Fork" button at the top of the repository page. This will create a copy of the repository in your GitHub account.
-
Clone the forked repository to your local machine using Git:
$ git clone https://github.com/your-username/scrapy-processors.git
-
Create a new branch for your changes:
$ git checkout -b feature
-
Make your desired changes to the codebase.
-
Commit your changes with descriptive commit messages:
$ git commit -m "Add new feature"
-
Push your changes to your forked repository:
$ git push origin feature
-
Open a pull request (PR) from your forked repository to the original repository's
master
branch. -
Provide a clear and descriptive title for your PR and explain the changes you have made.
-
Wait for the project maintainers to review your PR. You may need to make additional changes based on their feedback.
-
Once your PR is approved, it will be merged into the main codebase. Congratulations on your contribution!
If you have any questions or need further assistance, feel free to open an issue or reach out to the project maintainers.
Happy contributing!
License
This project is licensed under the MIT License. See the LICENSE file for more details.
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
Built Distribution
File details
Details for the file scrapy_processors-2.0.4.tar.gz
.
File metadata
- Download URL: scrapy_processors-2.0.4.tar.gz
- Upload date:
- Size: 28.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebb68991cd1f023a2e8762913bfc81df401dc230c6eacf6fa1b5b457562125ca |
|
MD5 | 3e43833c1b7291c526523a648c119f1d |
|
BLAKE2b-256 | 91dabb876a76bd0322aec67e3e9572296218f65bf1454f1455a54f4cf11528a6 |
File details
Details for the file scrapy_processors-2.0.4-py3-none-any.whl
.
File metadata
- Download URL: scrapy_processors-2.0.4-py3-none-any.whl
- Upload date:
- Size: 28.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.5.0-26-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01393efe5c9f1375d59e88ca019069a84a6c12dbf310c5b4d40db31ec2e37520 |
|
MD5 | b9c9252c9ca62ba63bbede1bd04964e4 |
|
BLAKE2b-256 | 3e1ef946a3dfdd5c03b96b3d991f273d599a6a6bc96e5d72838beb771dc0664b |