Lianjia | com real estate data crawling , data analysis
kandi X-RAY | Lianjia Summary
kandi X-RAY | Lianjia Summary
Lianjia.com real estate data crawling, data analysis, visualization
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get data for a given city .
- Add username and password
- Return the list of images that match the CSS .
- Run task_func in parallel
- Get all available city names .
- Main entry point .
- Send code
- Update the object .
- Generate random string .
- Return list of ErShouFangs .
Lianjia Key Features
Lianjia Examples and Code Snippets
Community Discussions
Trending Discussions on Lianjia
QUESTION
Given a link from here:
I would like to loop all the counties and then all commercial districts, the save them as a txt file with json format as follows:
...ANSWER
Answered 2021-Mar-28 at 16:10Is this what you want?
QUESTION
I am trying to get the link from the website https://www.lianjia.com/city/ inside the first search province. From the first province, I want to get the link for the cities to belong to this province, I find all the li tags with the href link by print(t)
, but when I try to extract the link by t.get('href')
, it return nothing, what is the problem with the below code, can someone please help?
ANSWER
Answered 2020-Nov-09 at 12:41li
tag has no href
attribute. You have to get all anchors to get the href
.
Try this:
QUESTION
I am trying to get some link for the website https://web.archive.org/web/*/https://cd.lianjia.com/, I want to get the link for each date,
...ANSWER
Answered 2020-Nov-02 at 15:12You approach is correct. but will need a some tweaks. You will need to target the elements directly and use get attribute method to extract the hrefs.
QUESTION
The page I am playing on is this https://web.archive.org/web/*/https://cd.lianjia.com/, I want to get into the pages this webarchive saved at different time point as showed with dots in calendar, but in the view page source I cannot find any href link for the different timepoint. If I click inspect on the one timepoint I can see the href link is there. Here is my code:
...ANSWER
Answered 2020-Oct-05 at 21:28Under the calendar grid
class you'll find a hierarchy of tags that eventually lead to each day of each week of each month. The days with associated archives will have have an calendar-day
div and associated href
.
QUESTION
I am new and I know there is a similar question to this. However, I don't think that problem is solved.
The version of scrapy I am using is 1.0.3 and the environment is in a virtualbox. What I am trying to do is to scrap all information from
https://bj.lianjia.com/zufang/rs%E8%A5%BF%E4%BA%8C%E6%97%97/
which has "西二旗" in the @title. My script is like this:
...ANSWER
Answered 2018-Oct-24 at 07:32Your code doesn't really expand the variable on xpath implicitly like that:
QUESTION
ANSWER
Answered 2017-May-07 at 17:14That XPath query is not working as expected because you are running it against the source code of the page as it is served by the server, not as it looks on a rendered browser page.
One solution for this is to use Selenium in conjunction with PhantomJS or some other browser driver, which will run the JavaScript on that page and render it for you.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Lianjia
You can use Lianjia like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page