noyainrain / flatdir Goto Github PK
View Code? Open in Web Editor NEWWeb aggregator of flat ads from different real estate companies.
License: MIT License
Web aggregator of flat ads from different real estate companies.
License: MIT License
Include rent data from real estate companies for flats.
Depends on #12.
Expand the scope of the Berlin Flat Directory and configure more real estate companies in places/berlin.ini
.
If you would like to contribute and add a company from the selection below, please claim it by leaving a short comment. 💖
Realtors:
Property managers:
Remove superfluous location data for Berlin, e.g. the street address.
Depends on #7.
Some real estate companies do not output certain fields, either in general (e.g. no location) or in specific circumstances (e.g. no room count for business space). Make it possible to supply a default value for missing fields, given by path:pattern:default
, e.g. p/span[1]::Berlin
.
Parse numeric fields according to the configured locale, respecting the decimal and grouping separator.
If a document defines a base tag, take it into account when resolving extracted ad URLs.
class Company:
"""
URL field of an ad. The extracted URL is resolved against the base URL of the document (for HTML
see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base).
"""
url_path: str
Implementation hints: Company._parse_html()
could search for a <base>
tag and join it with each
ad URL. A minimal HTML document containing a <base>
tag could be used for a unit test.
Parsing www.homesk.de fails with No div/div/div[2]/div/div[1]/div/div[1]/h3 in <a href="/Rent/RentalFlatDetails/a25f1be3-0607-47e5-998a-7b2a397288a6" title="Delbrückstraße 40" class="tile tile-sm-640px-480px tile-md-960px-480px tile-lg-1280px-480px" />
.
"Attraktive Single-Wohnung" shows 588 rooms instead of 1.
Parsing immosuche.degewo.de fails with No a/div[2]/ul[2]/li[1]/span in <article class="article-list__item article-list__item--immosearch" />
.
Some real estate companies output rather verbose field values, e.g. a location including the street address or a room count with flavor text. Make it possible to filter fields with a regular expression, given by path:pattern
, e.g. p/span[1]:[^,]*
.
## Real estate company.
##
## A *field* describes the extraction of data from a document and has the form
## `path:pattern:default`. *path* locates the target element. *pattern* is an optional regular
## expression to search the element for.
##
## Future reference: Optionally, a *default* value is used if the field is missing.
##[company:example.org]
## URL field of an ad
#url_path = a/@href
## Title field of an ad
#title_path = a/h2
## Location field of an ad
#location_path = p/span[1]:[^,]*
## Rooms field of an ad
#rooms_path = p/span[2]
Create a flat directory for Hannover.
We are looking for a volunteer to create and maintain a config file with a minimum of two real estate companies for Hannover. Documentation is available in default.ini, berlin.ini can be used as a template and we are happy to help with any questions. 😊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.