Git Product home page Git Product logo

Comments (3)

pippinmole avatar pippinmole commented on August 22, 2024

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.

phhoang98a avatar phhoang98a commented on August 22, 2024

@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.

cullenwatson avatar cullenwatson commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.