Giter Club home page Giter Club logo

python-seloger's People

Contributors

duccioa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

tboulogne

python-seloger's Issues

research executed but parsing of the result page crashing

hello and thank you for this library , i did try to run the example code but it unfortunately crashes giving me the following error:
seems the research call is working but the parsing of the page isnt:

Valid response from http://www.seloger.com/list.htm?idtt=2&cp=75015&idtypebien=1&pxmax=500000&surfacemin=40&tri=d_dt_crea&nb_balconsmin=1
The search returned 43 results.
40 results in 2 pages will be processed.
Page 1 parsed
Traceback (most recent call last):
File "C:/Users/julien/PycharmProjects/deployMe/Realestate.py", line 13, in
for result in results:
File "c:\users\julien\pycharmprojects\deployme\venv\src\egg-name\SeLoger_init_.py", line 208, in get_results
params = self.get_current_parameters(False, page)
File "c:\users\julien\pycharmprojects\deployme\venv\src\egg-name\SeLoger_init_.py", line 131, in get_current_parameters
json_str = re.search('({.});ava.', page_data_str_minified).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

Process finished with exit code 1

to get to this error i did run the example code you propose in your readme

from SeLoger import SeLogerAchat
from SeLoger import show_search_filters

Check the syntax for the relevant search filters

show_search_filters()

search_criteria = {'cp': '75015', 'idtypebien': '1', 'pxmax': '500000', 'surfacemin': '40','tri': 'd_dt_crea', 'nb_balconsmin': '1'}

rent_paris = SeLogerAchat(search_criteria)

get_results creates a generator that can be iterated and stored in a list

results = rent_paris.get_results(2, print_results=1)
ads = []
for result in results:
ads.append(result)

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.