PKUJohnson / OpenData

开源的金融投资数据提取工具,专注在各类网站上爬取数据,并通过简单易用的API方式使用
Apache License 2.0
1.3k stars 331 forks source link

The module "realestate" is not available #1

Closed CosmoGao closed 6 years ago

CosmoGao commented 6 years ago

After update to version 0.4.7 (Python 3.6.5), the module "realestate" cannot get the data from Anjuke, both get_city_list() and get_real_house_price() returned None. _I have review the module, I found that Anjuke add 2 CAPTCHA, so AnjukeAgent will not able to get the data.

P.S.There are sth wrong on the wiki of realestate:

df = realestate.realestate.get_real_house_price('北京')

THX

PKUJohnson commented 6 years ago

I have test the interface, it works! BTW, i have fixed the wiki. Thanks.

CosmoGao commented 6 years ago

Maybe some IP address will touch off the CAPTCHA like this, which will cause the problem. image Besides, the interface doesn't work with the JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1)

After passing the verification manually, the interface works.

PKUJohnson commented 6 years ago

thanks。