Activate virtual environment
sudo apt install python3-pip python3-virtualenv
mv tmpl.env .env
GITHUB_USERNAME=
GITHUB_TOKEN=
PDL_API_KEY=
cd github-scrapper
virtualenv github-scrapper
source github-scrapper/bin/activate
pip install -r requirements.txt
keyword = "Python"
python3 run.py
Open docker file and update github keys
# Github keys
ENV GITHUB_USERNAME
ENV GITHUB_TOKEN
ENV PDL_API_KEY
Build image
docker build --tag scrap-demo .
Run
docker run scrap-demo
View result folder
docker exec -it {container_id} bash
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)
Update the run_person_search.py
with your prefer query please reference to the docs
ES_QUERY = {
"query": {
"bool": {
"must": [
{
"terms": {
"skills": [
"vue.js",
"php"
]
}
},
{
"terms": {
"countries": [
"philippines",
"canada",
"argentina"
]
}
},
{
"exists": {
"field": "experience.title"
}
}
]
}
}
}
python run_person_search.py