Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/felipepaes/olxquery
A query builder for the brazilian version of the olx listings website
https://github.com/felipepaes/olxquery
Last synced: about 1 month ago
JSON representation
A query builder for the brazilian version of the olx listings website
- Host: GitHub
- URL: https://github.com/felipepaes/olxquery
- Owner: felipepaes
- Created: 2021-04-21T15:05:51.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-25T21:53:10.000Z (about 2 months ago)
- Last Synced: 2024-10-26T15:15:49.280Z (about 2 months ago)
- Language: Python
- Size: 120 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
Build urls for scraping the brazilian version of the famous listing website olx.
Work in Progress...
```python
from pprint import pprintfrom olxquery.queries import BasicQuery
from olxquery.locations import SP
from olxquery.categories import EletronicosECelularesquery = BasicQuery(
search="Playstation 4",
location=SP.DDD_11.ZonaLeste,
category=EletronicosECelulares.Videogames,
price_min=700,
price_max=1200
)pprint(query.url)
print("---------")
pprint(query.urls)
``````
'https://sp.olx.com.br/sao-paulo-e-regiao/zona-leste/videogames?q=Playstation+4&ps=700&pe=1200'
---------
['https://sp.olx.com.br/sao-paulo-e-regiao/zona-leste/videogames?q=Playstation+4&ps=700&pe=1200',
'https://sp.olx.com.br/sao-paulo-e-regiao/zona-leste/videogames?q=Playstation+4&ps=700&pe=1200&o=2']
```