Pricee is a web scraping project that allows users to compare prices of products across multiple websites. It is built with Django Rest Framework and uses web scraping techniques to collect data from various e-commerce websites.
-
Clone the repository to your local machine:
git clone https://github.com/fardeenes7/pricee.git
-
Create a virtual environment and activate it:
python -m venv env source env/bin/activate (Linux/Mac) env\Scripts\activate (Windows)
-
Install the required packages:
pip install -r requirements.txt
-
Run the migrations:
python manage.py migrate
-
Start the development server:
python manage.py runserver
-
Use a REST client like Postman to interact with the Pricee API.
The following API endpoints are available in Pricee:
GET
: Refresh all records in the database.
GET
: Get a list of all records in the database.
GET
: Get a list of all products.
GET
: Get a paginated list of all products.
GET
: Get a specific page of paginated list of all products.
GET
: Get a specific page of paginated list of all products in a given category.
GET
: Get a specific page of paginated list of all products in a given subcategory.
GET
: Get the details of a specific product with the givenproduct_slug
.
POST
: Record a view of a specific product with the givenid
.
GET
: Get a list of all categories.
GET
: Get a list of all subcategories.
GET
: Get a list of all categories and their subcategories for navigation.
GET
: Get a landing page with featured products.
- Includes endpoints from the
user.urls
module.
GET
: Get a list of all banner ads.POST
: Create a new banner ad.
GET
: Check if the user has admin permissions.
GET
: Get a list of all products.
GET
: Get a list of all users.POST
: Create a new user.
GET
: Get a form to create a new user.
GET
: Get the details of a specific user with the given primary keypk
.
GET
: Get a form to update the details of a specific user with the given primary keypk
.POST
: Update the details of a specific user with the given primary keypk
.
GET
: Get a form to delete a specific user with the given primary keypk
.POST
: Delete a specific user with the given primary keypk
.
If you would like to contribute to Pricee, please open a pull request or submit an issue on the GitHub repository.