https://github.com/kernel-sqz/wikidata-fullstack-parser
https://github.com/kernel-sqz/wikidata-fullstack-parser
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kernel-sqz/wikidata-fullstack-parser
- Owner: kernel-sqz
- Created: 2023-05-02T21:17:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-08T13:01:50.000Z (about 3 years ago)
- Last Synced: 2025-02-26T17:48:31.552Z (over 1 year ago)
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WikiData fullstack parser



# Description
The main goal is to search for every movie made after 2013, add it to data base and display in table using React-Table.
- Backend endpoints:
- /api/movies/
- Query parameters:
?title - (e.g. ?title=s) Will return every movies that title starts with 's'
?update (boolean) - When update parameter is set to 'true' script will check for updates from 'https://query.wikidata.org'
?page (number) - Go to page (number)
?page_size (number) - Return (number - default 10) objects
Example of saved movie in database:
{
"movie": "http://www.wikidata.org/entity/Q18407",
"imdb_id": "tt0053779",
"title": "La Dolce Vita",
"date": "2020-03-20"
}
# How to run it?
## Backend (django)
Go to directory that contains backend files and execute those commands:
$ pip install -r requirements.txt
$ python manage.py runserver
## Backend (django) with virtual enviroment
Go to directory that contains backend files and execute those commands:
`*`3.xx = your python version. Recomended 3.11
$ virtualenv venv -p python3.xx
$ source ./venv/bin/activate
$ pip install -r requirements.txt
$ python manage.py runserver
## Frontend (react)
Go to directory that contains frontend files and execute those commands:
$ npm i
$ npm start