Skip to content

This is a simple Rest API which can be used to fetch a quote with id or a list of quote. we can also do CRUD operation on the Quote. Also this app uses Beautiful Soup to scrap data from a Quote website & save the data to the DataBase by using provided commands.

License

Notifications You must be signed in to change notification settings

saurav-codes/Quote_app_DRF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quote_app_DRF

This is a simple Rest API which can be used to fetch a quote with id or a list of quote. we can also do CRUD operation on the Quote. Also this app uses Beautiful Soup to scrap data from a Quote website & save the data to the DataBase by using provided commands.

After running local django server, headover to this url

🌐 http://127.0.0.1:8000/api/quotes

Here are the end-points to send request

  • GET /quote/<pk> - Get the quote based on the primary key
  • GET /quotes - List all the quotes
  • POST /quotes - Create a Quote
  • DELETE /quote/<pk> - Delete a Quote
  • PATCH /quote/<pk> - Partial Update a Quote
  • PUT /quote/<pk> - Update a Quote

Commands to Scrape data from https://www.goodreads.com/quotes & save to DataBase

python manage.py category qantity

For Example if you want to extract 50 quotes related to life

python manage.py life 50

About

This is a simple Rest API which can be used to fetch a quote with id or a list of quote. we can also do CRUD operation on the Quote. Also this app uses Beautiful Soup to scrap data from a Quote website & save the data to the DataBase by using provided commands.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages