Giter Site home page Giter Site logo

flatdir's People

Contributors

ciubix8513 avatar noyainrain avatar poxar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flatdir's Issues

Add more companies for Berlin

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. 💖

Selection of Real Estate Companies

Realtors:

Property managers:

Mini Dictionary

  • Wohnung: Flat / Apartment
  • Immobilie: Real estate
  • Gewerbe: Business
  • Miete: Rent
  • Kauf: Sale
  • Zimmer: Rooms
  • Lage: Location
  • Aktuell: Current
  • Mitte, Friedrichshain-Kreuzberg, Pankow, Charlottenburg-Wilmersdorf, Spandau, Steglitz-Zehlendorf, Tempelhof-Schöneberg, Neukölln, Treptow-Köpenick, Marzahn-Hellersdorf, Lichtenberg, Reinickendorf: Districts of Berlin

Enable default value for fields

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.

Respect base tags

If a document defines a base tag, take it into account when resolving extracted ad URLs.

Draft

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

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" />.

Fix parsing of immosuche.degewo.de

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" />.

Enable text pattern for fields

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]:[^,]*.

Draft

## 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 Hannover Flat Directory

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. 😊

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.