Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Simple wrapper for crawling jobs data at Stack Overflow Jobs portal.
Creating a query is pretty straightforward:
from stackoverflow_jobs.query import Query
q = Query()
All query filters are available inside filters
module. In case you want to
add new filters, all you need to do is to append them to the Query
object:
from stackoverflow_jobs.query import Query
from stackoverflow_jobs.filters import Role, Remote, Description
q = Query() \
+ Description("Android Developer") \
+ Remote() \
+ Role([Role.Type.MOBILE])
After you build your query, call execute()
to fetch the data:
data = q.execute()
By default, queries requests are timed out after 60 seconds. You can change the timeout value in two different ways:
Query(timeout)
: Every query will end up after the specified timeout
.execute(timeout)
: Set up timeout for a specific query execution.q1 = Query() # Timeout default value: 60 seconds
q2 = Query(25) # Timeout custom value: 25 seconds
q1.execute() # timeout: 60 seconds
q2.execute() # timeout: 25 seconds
q1.execute(5) # timeout: 5 seconds
q2.execute(5) # timeout: 5 seconds
Important note: The library queries Stack Overflow Jobs RSS feed. This means that you need to parse the XML afterwards.
You can also retrieve the query URL using build_query()
method, in case you
need to:
q.build_query()
>>> 'https://stackoverflow.com/jobs/feed?q=Android+Developer&r=true&dr=MobileDeveloper'
stackoverflow-jobs
is available in pypi repository:
pip install stackoverflow-jobs
FAQs
Simple wrapper for crawling jobs data at Stack Overflow Jobs portal.
We found that stackoverflow-jobs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.