Comments (3)
It may help to see what the code is that you wrote.
Also, when you say:
or even did not return anything
...is it returning a data frame with 0 items in, or is the data frame null/an error occurs?
from jobspy.
@app.route("/job", methods=['POST'])
def job():
job_title = request.json['job_title']
country = request.json['country']
location = request.json['location']
jobs: pd.DataFrame = scrape_jobs(
site_name=["indeed"],
search_term=job_title,
location=location,
results_wanted=10,
country_indeed=country
)
return {
"job_url": jobs["job_url"].tolist(),
"site": jobs["site"].tolist(),
"title": jobs["title"].tolist(),
"company": jobs["company"].tolist(),
"location": jobs["location"].tolist(),
"date_posted": jobs["date_posted"].tolist(),
}, 200
This is my basic code, I sure the input params are true because It works in local. You can try to create a Flask API and deploy to see.
from jobspy.
I'm using this on my own site usejobspy.com as a FastAPI in DigitalOcean and no issues. Indeed has banned a lot of the cloud providers ip's. You need to put a proxy on it.
from jobspy.
Related Issues (20)
- Segmentation fault HOT 3
- Not able to fetch job description from Linkedin HOT 1
- pip install -U python-jobspy returns error in VS Code HOT 1
- can search_term allows more key words as input HOT 3
- site_name parameter not working
- Please help with scraping linkedin job_url_direct HOT 6
- "job_url_direct" is returning null for Linkedin HOT 2
- Improve LinkedIn scraper robustness HOT 1
- ModuleNotFoundError: No module named 'distutils' HOT 1
- Unable to scrape jobs from multiple locations HOT 1
- Indeed USA is fetching only full-time jobs.
- Identifier of JOB is missing
- Fetch Job function from LinkedIn HOT 1
- Allowed List of Proxies, instead of only one.
- LinkedIn Scraper Fix - Increase offset by number of jobs pulled
- Ziprecruiter scraper partial descriptions
- Running the code without Jupyter HOT 1
- Jobs from LinkedIn not showing description
- Issue with the requirements
- Problem with key min_amount
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jobspy.