Frollamma / subito.it-API

An API for Subito.it to list and create listings
Other
0 stars 0 forks source link

Incorrect URL in client search #1

Open lucasub opened 1 month ago

lucasub commented 1 month ago

Hi, I'm testing your python class to access subito.it. I don't understand the formatting of 'search_query' on the client.search method. If I write a text like "smartphone android" , I get this error:

requests.Exceptions.MissingSchema: Invalid URL 'subito.it/search': no ​​schema provided. Maybe you meant https://subito.it/search?

Where can I find the right schema? Can you write an example? Even regarding writing an article it's not clear how I can do it.

Please help me. Thanks Have a nice day Luca

Frollamma commented 1 month ago

Hi @lucasub, yes I think you're right about that error. My client focused on emulating the web client, if you go on Subito.it website, you will notice that when you make a search the URL is something like https://www.subito.it/annunci-italia/vendita/usato/?q={query}, before it was simpler and /search worked. So if you want to make the client work you should focus on these fixes. I'm not maintaining this project anymore, but you're welcome to open a pull request and improve this project for everyone.