Skip to content

A query builder for the brazilian version of the olx listings website

Notifications You must be signed in to change notification settings

felipepaes/olxquery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Build urls for scraping the brazilian version of the famous listing website olx.

Work in Progress...

from pprint import pprint

from olxquery.queries import BasicQuery
from olxquery.locations import SP
from olxquery.categories import EletronicosECelulares

query = 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']

About

A query builder for the brazilian version of the olx listings website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages