spinlud / py-linkedin-jobs-scraper

MIT License
337 stars 96 forks source link

filter by city #32

Open DenisDemins opened 2 years ago

DenisDemins commented 2 years ago

Hello, you have written an amazing program, I have a question, due to the limitation of the displayed data from linkedin, it is possible to increase it by iterating over cities in the filter. What is the best way to do this in the program?

spinlud commented 2 years ago

Hi, I am not totally sure what you mean by iterating by city, but if you want to run the same query for multiple citys you can simply use the locations query option:

from linkedin_jobs_scraper.query import Query, QueryOptions, QueryFilters

Query(
    query='Engineer',
    options=QueryOptions(
        locations=['Rome', 'New York', 'Sydney'],        
        limit=10,        
    )
)