For a given Shopping Store, the app scraps the website and collects the addresses of all store locations of all cities in India.
The address is stored in a Relational Database and validates each location with location on Google Maps and flags the incorrect location
by validating with Google Map API. The application exposes an API endpoint /result
which outputs the list of invalid store addresses.
- Beautifulsoup - For scrapping the Web and store the addresses
- Django - Backend Service and REST API
- MySQL - Database Storage
- Clone the repository
location-validator-app
- Go to directory
location-validator-app
- Install Requirements -
pip3 install requirements.txt
- Run the application
python3 ./location_validator/start.py
- The API endpoint is
http://127.0.0.1:8000/result
is a GET method.
- The API call is made to
http://127.0.0.1:8000/result
- The output is returned as a JSON object of invalid location.
INPUT:
OUTPUT:
RESULT: PASS