Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 790 Bytes

File metadata and controls

36 lines (21 loc) · 790 Bytes

FetcherAPI

This api can handle incoming post request, take username and password form the user, and returns their profile data along with their attendance data.

Libraries Used

  • Flask
  • BeautifulSoup4
  • Requests
  • CORS
  • Gunicorn for WSGI

Running

Navigate to the main folder. Activate virtualenvs if any. And then type this into the cmd

flask --app:app --debug run

or simple type this

python app.py

Head over to your local host, nothings going to pop up. Head over to PostMan and then check the api by providing a post request.

Provide your localhost as the url. Send out a POST request.

Should look something like this:

{ "username" : "230xxx", "password" : "yourPassword" }

This should work or await an appropriate error message.