stackoverflow-jobs
Simple wrapper for crawling jobs data at Stack Overflow Jobs portal.
Basic usage
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 specifiedtimeout.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'
Installing
stackoverflow-jobs is available in pypi repository:
pip install stackoverflow-jobs
Metadata
Release files for stackoverflow-jobs 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| stackoverflow-jobs-0.1.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| stackoverflow_jobs-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / stackoverflow-jobs-0.1.0.tar.gz
| Download URL | stackoverflow-jobs-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d4c9c952cee4fb351ed50d075f3b61bbf615b47d0dd10b0295dcc84da853ae70
|
|
BLAKE2b-256 checksum How to use checksums |
7651b718d029cdc88f2aff6a28ed419eebf37fb30d973ae90bb205ce05e4f2cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
|
Release files / stackoverflow_jobs-0.1.0-py3-none-any.whl
| Download URL | stackoverflow_jobs-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1976f819331a4e3d35f847aca3a8d1d00a2743075f7b3578a8d9dd43c6523421
|
|
BLAKE2b-256 checksum How to use checksums |
83250bd5e4279f0a30ec0307ca20e90999d6683bd3b0eb802a7f9ecc50ce2425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
|