Browse Source

WebOOB -> Woob

Phyks (Lucas Verney) 8 months ago
parent
commit
9b6407db05

+ 0
- 1
.gitignore View File

@@ -10,5 +10,4 @@ data/
10 10
 doc/_build
11 11
 data_rework/
12 12
 .env
13
-weboob
14 13
 .htpasswd

+ 1
- 1
.vscode/settings.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
     "cSpell.words": [
3
-        "Weboob",
3
+        "woob",
4 4
         "flatisfy"
5 5
     ],
6 6
     "sqltools.useNodeRuntime": true,

+ 2
- 2
CONTRIBUTING.md View File

@@ -53,9 +53,9 @@ locale.
53 53
 Thanks!
54 54
 
55 55
 
56
-## Adding support for a new Weboob backend
56
+## Adding support for a new Woob backend
57 57
 
58
-To enable a new Weboob `CapHousing` backend in Flatisfy, you should add it to
58
+To enable a new Woob `CapHousing` backend in Flatisfy, you should add it to
59 59
 the list of available backends in
60 60
 [flatisfy/fetch.py#L69-70](https://git.phyks.me/Phyks/flatisfy/blob/master/flatisfy/fetch.py#L69-70)
61 61
 and update the list of `BACKEND_PRECEDENCES` for deduplication in

+ 3
- 3
README.md View File

@@ -19,7 +19,7 @@ and it is working fine :)
19 19
 
20 20
 <img src="doc/img/home.png" width="45%"/> <img src="doc/img/home2.png" width="45%"/>
21 21
 
22
-It uses [WebOOB](http://weboob.org/) to get all the housing posts on most of
22
+It uses [woob](https://gitlab.com/woob/woob/) to get all the housing posts on most of
23 23
 the websites offering housings posts, and then offers a bunch of pipelines to
24 24
 filter and deduplicate the fetched housings.
25 25
 
@@ -116,9 +116,9 @@ Feel free to open issues. An IRC channel is available at [irc://irc.freenode.net
116 116
 
117 117
 ## Thanks
118 118
 
119
-* [WebOOB](http://weboob.org/). Note that this is actually the only and best
119
+* [Woob](https://gitlab.com/woob/woob/). Note that this is actually the only and best
120 120
   software out there to scrape housing posts online. Using it in Flatisfy does
121
-  not mean the authors of Flatisfy endorse WebOOB authors' views.
121
+  not mean the authors of Flatisfy endorse Woob authors' views.
122 122
 * The OpenData providers listed above!
123 123
 * Navitia for their really cool public transportation API.
124 124
 * A lots of Python modules, required for this script (see `requirements.txt`).

+ 22
- 24
doc/0.getting_started.md View File

@@ -2,36 +2,34 @@ Getting started
2 2
 ===============
3 3
 
4 4
 
5
-## Dependency on WebOOB
5
+## Dependency on Woob
6 6
 
7
-**Important**: Flatisfy relies on [WebOOB](http://weboob.org/) to fetch
8
-housing posts from housing websites. Then, you should install the [`devel`
9
-branch](https://git.weboob.org/weboob/devel/) and update it regularly,
10
-especially if Flatisfy suddenly stops fetching housing posts.
7
+**Important**: Flatisfy relies on [Woob](https://gitlab.com/woob/woob/) to fetch
8
+housing posts from housing websites.
11 9
 
12 10
 If you `pip install -r requirements.txt` it will install the latest
13
-development version of [WebOOB](https://git.weboob.org/weboob/devel/) and the
14
-[WebOOB modules](https://git.weboob.org/weboob/modules/), which should be the
11
+development version of [Woob](https://gitlab.com/woob/woob/) and the
12
+[Woob modules](https://gitlab.com/woob/modules/), which should be the
15 13
 best version available out there. You should update these packages regularly,
16 14
 as they evolve quickly.
17 15
 
18
-WebOOB is made of two parts: a core and modules (which is the actual code
16
+Woob is made of two parts: a core and modules (which is the actual code
19 17
 fetching data from websites). Modules tend to break often and are then updated
20
-often, you should keep them up to date. This can be done by installing the
21
-`weboob-modules` package listed in the `requirements.txt` and using the
22
-default configuration.
18
+often, you should keep them up to date. This can be done by installing and
19
+upgrading the packages listed in the `requirements.txt` and using the default
20
+configuration.
23 21
 
24 22
 This is a safe default configuration. However, a better option is usually to
25
-clone [WebOOB git repo](https://git.weboob.org/weboob/devel/) somewhere, on
23
+clone [Woob git repo](https://gitlab.com/woob/woob/) somewhere, on
26 24
 your disk, to point `modules_path` configuration option to
27
-`path_to_weboob_git/modules` (see the configuration section below) and to run
28
-a `git pull; python setup.py install` in the WebOOB git repo often.
25
+`path_to_woob_git/modules` (see the configuration section below) and to run
26
+a `git pull; python setup.py install` in the Woob git repo often.
29 27
 
30
-A copy of the WebOOB modules is available in the `modules` directory at the
28
+A copy of the Woob modules is available in the `modules` directory at the
31 29
 root of this repository, you can use `"modules_path": "/path/to/flatisfy/modules"` to use them.
32 30
 This copy may or may not be more up to date than the current state of official
33
-WebOOB modules. Some changes are made there, which are not backported
34
-upstream. WebOOB official modules are not synced in the `modules` folder on a
31
+Woob modules. Some changes are made there, which are not backported
32
+upstream. Woob official modules are not synced in the `modules` folder on a
35 33
 regular basis, so try both and see which ones match your needs! :)
36 34
 
37 35
 
@@ -81,7 +79,7 @@ The available commands are:
81 79
 _Note:_ Fetching flats can be quite long and take up to a few minutes. This
82 80
 should be better optimized. To get a verbose output and have an hint about the
83 81
 progress, use the `-v` argument. It can remain stuck at "Loading flats for
84
-constraint XXX...", which simply means it is fetching flats (using WebOOB
82
+constraint XXX...", which simply means it is fetching flats (using Woob
85 83
 under the hood) and this step can be super long if there are lots of flats to
86 84
 fetch. If this happens to you, you can set `max_entries` in your config to
87 85
 limit the number of flats to fetch.
@@ -123,11 +121,11 @@ List of configuration options:
123 121
 * `mapbox_api_key` is an API token for [Mapbox](http://mapbox.com/)
124 122
   which is required to compute travel times for `WALK`, `BIKE` and `CAR`
125 123
   modes.
126
-* `modules_path` is the path to the WebOOB modules. It can be `null` if you
127
-  want WebOOB to use the locally installed [WebOOB
128
-  modules](https://git.weboob.org/weboob/modules), which you should install
124
+* `modules_path` is the path to the Woob modules. It can be `null` if you
125
+  want Woob to use the locally installed [Woob
126
+  modules](https://gitlab.com/woob/modules/), which you should install
129 127
   yourself. This is the default value. If it is a string, it should be an
130
-  absolute path to the folder containing WebOOB  modules.
128
+  absolute path to the folder containing Woob  modules.
131 129
 * `port` is the port on which the development webserver should be
132 130
   listening (default to `8080`).
133 131
 * `host` is the host on which the development webserver should be listening
@@ -135,8 +133,8 @@ List of configuration options:
135 133
 * `webserver` is a server to use instead of the default Bottle built-in
136 134
   webserver, see [Bottle deployment
137 135
   doc](http://bottlepy.org/docs/dev/deployment.html).
138
-* `backends` is a list of WebOOB backends to enable. It defaults to any
139
-  available and supported WebOOB backend.
136
+* `backends` is a list of Woob backends to enable. It defaults to any
137
+  available and supported Woob backend.
140 138
 * `store_personal_data` is a boolean indicated whether or not Flatisfy should
141 139
   fetch personal data from housing posts and store them in database. Such
142 140
   personal data include contact phone number for instance. By default,

+ 2
- 5
doc/1.production.md View File

@@ -20,9 +20,6 @@ virtualenv .env && source .env/bin/activate
20 20
 # Install required Python modules
21 21
 pip install -r requirements.txt
22 22
 
23
-# Clone and install webOOB
24
-git clone https://git.weboob.org/weboob/devel weboob && cd weboob && python setup.py install && cd ..
25
-
26 23
 # Install required JS libraries and build the webapp
27 24
 npm install && npm run build:prod
28 25
 
@@ -45,7 +42,7 @@ python -m flatisfy import --config config/config.json -v
45 42
 _Note 1_: In the config, you should set `data_directory` to the absolute path of
46 43
 the `data` directory created below. This directory should be writable by the
47 44
 user running Flatisfy. You should also set `modules_path` to the absolute path
48
-to the `modules` folder under the previous `weboob` clone. Finally, the last
45
+to the `modules` folder under the previous `woob` clone. Finally, the last
49 46
 `import` command can be `cron`-tasked to automatically fetch available
50 47
 housings posts periodically.
51 48
 
@@ -246,4 +243,4 @@ Restart:
246 243
 
247 244
 ```bash
248 245
 systemctl restart uwsgi
249
-```
246
+```

+ 1
- 1
doc/3.faq.md View File

@@ -27,7 +27,7 @@ set `max_entries` in your config to limit the number of posts fetched.
27 27
 
28 28
 ## Docker image does not start the webserver at first start?
29 29
 
30
-When you launch the Docker image, it first updates WebOOB and fetches the
30
+When you launch the Docker image, it first updates Woob and fetches the
31 31
 housing posts matching your criterias. The webserver is only started once this
32 32
 is done. As fetching housing posts can take a bit of time (up to 10 minutes),
33 33
 the webserver will not be available right away.

+ 0
- 5
docker/Dockerfile View File

@@ -18,11 +18,6 @@ RUN pip install -U setuptools && \
18 18
 RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - \
19 19
     && apt-get install -y nodejs
20 20
 
21
-# Install weboob's code itself.
22
-RUN git clone --depth 1 https://git.weboob.org/weboob/weboob /home/user/weboob \
23
-    && cd /home/user/weboob \
24
-    && pip install .
25
-
26 21
 RUN mkdir -p /flatisfy/data
27 22
 VOLUME /flatisfy
28 23
 

+ 0
- 3
docker/entrypoint.sh View File

@@ -14,7 +14,4 @@ echo "[ENTRYPOINT] Setting fake values for git config..."
14 14
 git config --global user.email flatisfy@example.com
15 15
 git config --global user.name "Flatisfy Root"
16 16
 
17
-echo "Update Weboob..."
18
-/home/user/update_weboob.sh
19
-
20 17
 exec su user -c "$@"

+ 0
- 6
docker/update_weboob.sh View File

@@ -1,6 +0,0 @@
1
-#!/bin/bash
2
-set -e
3
-
4
-echo "Updating Weboob..."
5
-cd /home/user/weboob
6
-git pull && pip install --upgrade . || echo "Couldn't upgrade Weboob; maybe the server is unreachable?"

+ 1
- 1
flatisfy/cmds.py View File

@@ -134,7 +134,7 @@ def import_and_filter(config, load_from_db=False, new_only=False):
134 134
 
135 135
     :param config: A config dict.
136 136
     :param load_from_db: Whether to load flats from database or fetch them
137
-        using WebOOB.
137
+        using Woob.
138 138
     :return: ``None``.
139 139
     """
140 140
     # Fetch and filter flats list

+ 7
- 6
flatisfy/config.py View File

@@ -15,7 +15,7 @@ import sys
15 15
 import traceback
16 16
 
17 17
 import appdirs
18
-from weboob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
18
+from woob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
19 19
 
20 20
 from flatisfy import data
21 21
 from flatisfy import tools
@@ -23,6 +23,9 @@ from flatisfy.constants import TimeToModes
23 23
 from flatisfy.models.postal_code import PostalCode
24 24
 
25 25
 
26
+DIRPATH = os.path.dirname(os.path.realpath(__file__))
27
+
28
+
26 29
 # Default configuration
27 30
 DEFAULT_CONFIG = {
28 31
     # Constraints to match
@@ -74,10 +77,8 @@ DEFAULT_CONFIG = {
74 77
     "max_entries": None,
75 78
     # Directory in wich data will be put. ``None`` is XDG default location.
76 79
     "data_directory": None,
77
-    # Path to the modules directory containing all Weboob modules. ``None`` if
78
-    # ``weboob_modules`` package is pip-installed, and you want to use
79
-    # ``pkgresource`` to automatically find it.
80
-    "modules_path": None,
80
+    # Path to the modules directory containing all Woob modules.
81
+    "modules_path": os.path.join(DIRPATH, '..', 'modules'),
81 82
     # SQLAlchemy URI to the database to use
82 83
     "database": None,
83 84
     # Path to the Whoosh search index file. Use ``None`` to put it in
@@ -89,7 +90,7 @@ DEFAULT_CONFIG = {
89 90
     "host": "127.0.0.1",
90 91
     # Web server to use to serve the webapp (see Bottle deployment doc)
91 92
     "webserver": None,
92
-    # List of Weboob backends to use (default to any backend available)
93
+    # List of Woob backends to use (default to any backend available)
93 94
     "backends": None,
94 95
     # Should email notifications be sent?
95 96
     "send_email": False,

+ 28
- 28
flatisfy/fetch.py View File

@@ -20,27 +20,27 @@ LOGGER = logging.getLogger(__name__)
20 20
 
21 21
 
22 22
 try:
23
-    from weboob.capabilities.housing import Query, POSTS_TYPES, HOUSE_TYPES
24
-    from weboob.core.bcall import CallErrors
25
-    from weboob.core.ouiboube import WebNip
26
-    from weboob.tools.json import WeboobEncoder
23
+    from woob.capabilities.housing import Query, POSTS_TYPES, HOUSE_TYPES
24
+    from woob.core.bcall import CallErrors
25
+    from woob.core.ouiboube import WebNip
26
+    from woob.tools.json import WoobEncoder
27 27
 except ImportError:
28
-    LOGGER.error("Weboob is not available on your system. Make sure you installed it.")
28
+    LOGGER.error("Woob is not available on your system. Make sure you installed it.")
29 29
     raise
30 30
 
31 31
 
32
-class WebOOBProxy(object):
32
+class WoobProxy(object):
33 33
     """
34
-    Wrapper around WebOOB ``WebNip`` class, to fetch housing posts without
34
+    Wrapper around Woob ``WebNip`` class, to fetch housing posts without
35 35
     having to spawn a subprocess.
36 36
     """
37 37
 
38 38
     @staticmethod
39 39
     def version():
40 40
         """
41
-        Get WebOOB version.
41
+        Get Woob version.
42 42
 
43
-        :return: The installed WebOOB version.
43
+        :return: The installed Woob version.
44 44
         """
45 45
         return WebNip.VERSION
46 46
 
@@ -64,7 +64,7 @@ class WebOOBProxy(object):
64 64
 
65 65
     def __init__(self, config):
66 66
         """
67
-        Create a WebOOB handle and try to load the modules.
67
+        Create a Woob handle and try to load the modules.
68 68
 
69 69
         :param config: A config dict.
70 70
         """
@@ -95,13 +95,13 @@ class WebOOBProxy(object):
95 95
 
96 96
     def build_queries(self, constraints_dict):
97 97
         """
98
-        Build WebOOB ``weboob.capabilities.housing.Query`` objects from the
98
+        Build Woob ``woob.capabilities.housing.Query`` objects from the
99 99
         constraints defined in the configuration. Each query has at most 3
100 100
         cities, to comply with housing websites limitations.
101 101
 
102 102
         :param constraints_dict: A dictionary of constraints, as defined in the
103 103
             config.
104
-        :return: A list of WebOOB ``weboob.capabilities.housing.Query``
104
+        :return: A list of Woob ``woob.capabilities.housing.Query``
105 105
             objects. Returns ``None`` if an error occurred.
106 106
         """
107 107
         queries = []
@@ -163,9 +163,9 @@ class WebOOBProxy(object):
163 163
 
164 164
     def query(self, query, max_entries=None, store_personal_data=False):
165 165
         """
166
-        Fetch the housings posts matching a given WebOOB query.
166
+        Fetch the housings posts matching a given Woob query.
167 167
 
168
-        :param query: A WebOOB `weboob.capabilities.housing.Query`` object.
168
+        :param query: A Woob `woob.capabilities.housing.Query`` object.
169 169
         :param max_entries: Maximum number of entries to fetch.
170 170
         :param store_personal_data: Whether personal data should be fetched
171 171
             from housing posts (phone number etc).
@@ -181,7 +181,7 @@ class WebOOBProxy(object):
181 181
                     "search_housings",
182 182
                     query,
183 183
                     # Only run the call on the required backends.
184
-                    # Otherwise, WebOOB is doing weird stuff and returning
184
+                    # Otherwise, Woob is doing weird stuff and returning
185 185
                     # nonsense.
186 186
                     backends=[x for x in self.backends if x.name in useful_backends],
187 187
                 ),
@@ -189,7 +189,7 @@ class WebOOBProxy(object):
189 189
             ):
190 190
                 if not store_personal_data:
191 191
                     housing.phone = None
192
-                housings.append(json.dumps(housing, cls=WeboobEncoder))
192
+                housings.append(json.dumps(housing, cls=WoobEncoder))
193 193
         except CallErrors as exc:
194 194
             # If an error occured, just log it
195 195
             LOGGER.error("An error occured while fetching the housing posts: %s", str(exc))
@@ -199,7 +199,7 @@ class WebOOBProxy(object):
199 199
         """
200 200
         Get information (details) about an housing post.
201 201
 
202
-        :param full_flat_id: A WebOOB housing post id, in complete form
202
+        :param full_flat_id: A Woob housing post id, in complete form
203 203
             (ID@BACKEND)
204 204
         :param store_personal_data: Whether personal data should be fetched
205 205
             from housing posts (phone number etc).
@@ -223,7 +223,7 @@ class WebOOBProxy(object):
223 223
             # Otherwise, we miss the @backend afterwards
224 224
             housing.id = full_flat_id
225 225
 
226
-            return json.dumps(housing, cls=WeboobEncoder)
226
+            return json.dumps(housing, cls=WoobEncoder)
227 227
         except Exception as exc:  # pylint: disable=broad-except
228 228
             # If an error occured, just log it
229 229
             LOGGER.error("An error occured while fetching housing %s: %s", full_flat_id, str(exc))
@@ -232,7 +232,7 @@ class WebOOBProxy(object):
232 232
 
233 233
 def fetch_flats(config):
234 234
     """
235
-    Fetch the available flats using the Flatboob / WebOOB config.
235
+    Fetch the available flats using the Woob config.
236 236
 
237 237
     :param config: A config dict.
238 238
     :return: A dict mapping constraint in config to all available matching
@@ -242,16 +242,16 @@ def fetch_flats(config):
242 242
 
243 243
     for constraint_name, constraint in config["constraints"].items():
244 244
         LOGGER.info("Loading flats for constraint %s...", constraint_name)
245
-        with WebOOBProxy(config) as webOOB_proxy:
246
-            queries = webOOB_proxy.build_queries(constraint)
245
+        with WoobProxy(config) as woob_proxy:
246
+            queries = woob_proxy.build_queries(constraint)
247 247
             housing_posts = []
248 248
             for query in queries:
249
-                housing_posts.extend(webOOB_proxy.query(query, config["max_entries"], config["store_personal_data"]))
249
+                housing_posts.extend(woob_proxy.query(query, config["max_entries"], config["store_personal_data"]))
250 250
         housing_posts = housing_posts[: config["max_entries"]]
251 251
         LOGGER.info("Fetched %d flats.", len(housing_posts))
252 252
 
253 253
         constraint_flats_list = [json.loads(flat) for flat in housing_posts]
254
-        constraint_flats_list = [WebOOBProxy.restore_decimal_fields(flat) for flat in constraint_flats_list]
254
+        constraint_flats_list = [WoobProxy.restore_decimal_fields(flat) for flat in constraint_flats_list]
255 255
         fetched_flats[constraint_name] = constraint_flats_list
256 256
     return fetched_flats
257 257
 
@@ -266,18 +266,18 @@ def fetch_details_rate_limited(config, flat_id):
266 266
 
267 267
 def fetch_details(config, flat_id):
268 268
     """
269
-    Fetch the additional details for a flat using Flatboob / WebOOB.
269
+    Fetch the additional details for a flat using Woob.
270 270
 
271 271
     :param config: A config dict.
272 272
     :param flat_id: ID of the flat to fetch details for.
273 273
     :return: A flat dict with all the available data.
274 274
     """
275
-    with WebOOBProxy(config) as webOOB_proxy:
275
+    with WoobProxy(config) as woob_proxy:
276 276
         LOGGER.info("Loading additional details for flat %s.", flat_id)
277
-        webOOB_output = webOOB_proxy.info(flat_id, config["store_personal_data"])
277
+        woob_output = woob_proxy.info(flat_id, config["store_personal_data"])
278 278
 
279
-    flat_details = json.loads(webOOB_output)
280
-    flat_details = WebOOBProxy.restore_decimal_fields(flat_details)
279
+    flat_details = json.loads(woob_output)
280
+    flat_details = WoobProxy.restore_decimal_fields(flat_details)
281 281
     LOGGER.info("Fetched details for flat %s.", flat_id)
282 282
 
283 283
     return flat_details

+ 2
- 2
flatisfy/filters/duplicates.py View File

@@ -161,7 +161,7 @@ def detect(flats_list, key="id", merge=True, should_intersect=False):
161 161
 
162 162
     for flat_key, matching_flats in seen.items():
163 163
         if flat_key is None:
164
-            # If the key is None, it means Weboob could not load the data. In
164
+            # If the key is None, it means Woob could not load the data. In
165 165
             # this case, we consider every matching item as being independant
166 166
             # of the others, to avoid over-deduplication.
167 167
             unique_flats_list.extend(matching_flats)
@@ -263,7 +263,7 @@ def get_duplicate_score(flat1, flat2, photo_cache, hash_threshold):
263 263
         flat2_phone = homogeneize_phone_number(flat2["phone"])
264 264
         if flat1_phone and flat2_phone:
265 265
             # Use an "in" test as there could be multiple phone numbers
266
-            # returned by a weboob module
266
+            # returned by a Woob module
267 267
             if flat1_phone in flat2_phone or flat2_phone in flat1_phone:
268 268
                 n_common_items += 4  # Counts much more than the rest
269 269
 

+ 1
- 1
flatisfy/filters/metadata.py View File

@@ -310,7 +310,7 @@ def guess_stations(flats_list, constraint, config):
310 310
             LOGGER.info("No stations field for flat %s, skipping stations lookup.", flat["id"])
311 311
             continue
312 312
 
313
-        # Weboob modules can return several stations in a comma-separated list.
313
+        # Woob modules can return several stations in a comma-separated list.
314 314
         flat_stations = flat_station.split(",")
315 315
         # But some stations containing a comma exist, so let's add the initial
316 316
         # value to the list of stations to check if there was one.

+ 1
- 1
flatisfy/models/flat.py View File

@@ -68,7 +68,7 @@ class Flat(BASE):
68 68
     __tablename__ = "flats"
69 69
     __searchable__ = ["title", "text", "station", "location", "details", "notes"]
70 70
 
71
-    # Weboob data
71
+    # Woob data
72 72
     id = Column(String, primary_key=True)
73 73
     area = Column(Float)
74 74
     bedrooms = Column(Float)

+ 4
- 4
modules/explorimmo/__init__.py View File

@@ -2,20 +2,20 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21 21
 from .module import ExplorimmoModule

+ 7
- 7
modules/explorimmo/browser.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.browser import PagesBrowser, URL
21
-from weboob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
20
+from woob.browser import PagesBrowser, URL
21
+from woob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
22 22
                                          HOUSE_TYPES)
23
-from weboob.tools.compat import urlencode
23
+from woob.tools.compat import urlencode
24 24
 from .pages import CitiesPage, SearchPage, HousingPage, HousingPage2, PhonePage
25 25
 
26 26
 

+ 6
- 6
modules/explorimmo/module.py View File

@@ -2,24 +2,24 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.tools.backend import Module
22
-from weboob.capabilities.housing import CapHousing, Housing, HousingPhoto
21
+from woob.tools.backend import Module
22
+from woob.capabilities.housing import CapHousing, Housing, HousingPhoto
23 23
 
24 24
 from .browser import ExplorimmoBrowser
25 25
 

+ 13
- 13
modules/explorimmo/pages.py View File

@@ -2,20 +2,20 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 from __future__ import unicode_literals
20 20
 
21 21
 import json
@@ -23,19 +23,19 @@ import math
23 23
 import re
24 24
 from decimal import Decimal
25 25
 from datetime import datetime
26
-from weboob.browser.filters.json import Dict
27
-from weboob.browser.elements import ItemElement, ListElement, DictElement, method
28
-from weboob.browser.pages import JsonPage, HTMLPage, pagination
29
-from weboob.browser.filters.standard import (CleanText, CleanDecimal, Currency,
26
+from woob.browser.filters.json import Dict
27
+from woob.browser.elements import ItemElement, ListElement, DictElement, method
28
+from woob.browser.pages import JsonPage, HTMLPage, pagination
29
+from woob.browser.filters.standard import (CleanText, CleanDecimal, Currency,
30 30
                                              Regexp, Env, BrowserURL, Filter,
31 31
                                              Format)
32
-from weboob.browser.filters.html import Attr, CleanHTML, XPath
33
-from weboob.capabilities.base import NotAvailable, NotLoaded, Currency as BaseCurrency
34
-from weboob.capabilities.housing import (Housing, HousingPhoto, City,
32
+from woob.browser.filters.html import Attr, CleanHTML, XPath
33
+from woob.capabilities.base import NotAvailable, NotLoaded, Currency as BaseCurrency
34
+from woob.capabilities.housing import (Housing, HousingPhoto, City,
35 35
                                          UTILITIES, ENERGY_CLASS, POSTS_TYPES,
36 36
                                          ADVERT_TYPES, HOUSE_TYPES)
37
-from weboob.tools.capabilities.housing.housing import PricePerMeterFilter
38
-from weboob.tools.compat import unquote
37
+from woob.tools.capabilities.housing.housing import PricePerMeterFilter
38
+from woob.tools.compat import unquote
39 39
 
40 40
 
41 41
 class CitiesPage(JsonPage):

+ 7
- 7
modules/explorimmo/test.py View File

@@ -2,24 +2,24 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.capabilities.housing import Query, ADVERT_TYPES, POSTS_TYPES
21
-from weboob.tools.capabilities.housing.housing_test import HousingTest
22
-from weboob.tools.test import BackendTest
20
+from woob.capabilities.housing import Query, ADVERT_TYPES, POSTS_TYPES
21
+from woob.tools.capabilities.housing.housing_test import HousingTest
22
+from woob.tools.test import BackendTest
23 23
 
24 24
 
25 25
 class ExplorimmoTest(BackendTest, HousingTest):

+ 4
- 4
modules/foncia/__init__.py View File

@@ -2,20 +2,20 @@
2 2
 
3 3
 # Copyright(C) 2017      Phyks (Lucas Verney)
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 

+ 5
- 5
modules/foncia/browser.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2017      Phyks (Lucas Verney)
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 
22 22
 
23
-from weboob.browser import PagesBrowser, URL
23
+from woob.browser import PagesBrowser, URL
24 24
 
25 25
 from .constants import QUERY_TYPES
26 26
 from .pages import CitiesPage, HousingPage, SearchPage, SearchResultsPage

+ 1
- 1
modules/foncia/constants.py View File

@@ -1,4 +1,4 @@
1
-from weboob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
1
+from woob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
2 2
 
3 3
 QUERY_TYPES = {
4 4
     POSTS_TYPES.RENT: 'location',

+ 6
- 6
modules/foncia/module.py View File

@@ -2,26 +2,26 @@
2 2
 
3 3
 # Copyright(C) 2017      Phyks (Lucas Verney)
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 
22 22
 
23
-from weboob.tools.backend import Module
24
-from weboob.capabilities.housing import CapHousing, Housing, ADVERT_TYPES, HousingPhoto
23
+from woob.tools.backend import Module
24
+from woob.capabilities.housing import CapHousing, Housing, ADVERT_TYPES, HousingPhoto
25 25
 
26 26
 from .browser import FonciaBrowser
27 27
 

+ 11
- 11
modules/foncia/pages.py View File

@@ -2,37 +2,37 @@
2 2
 
3 3
 # Copyright(C) 2017      Phyks (Lucas Verney)
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 
22 22
 import datetime
23 23
 
24
-from weboob.browser.pages import JsonPage, HTMLPage, pagination
25
-from weboob.browser.filters.standard import (
24
+from woob.browser.pages import JsonPage, HTMLPage, pagination
25
+from woob.browser.filters.standard import (
26 26
     CleanDecimal, CleanText, Currency, Date, Env, Format, Regexp, RegexpError
27 27
 )
28
-from weboob.browser.filters.html import AbsoluteLink, Attr, Link, XPathNotFound
29
-from weboob.browser.elements import ItemElement, ListElement, method
30
-from weboob.capabilities.base import NotAvailable, NotLoaded
31
-from weboob.capabilities.housing import (
28
+from woob.browser.filters.html import AbsoluteLink, Attr, Link, XPathNotFound
29
+from woob.browser.elements import ItemElement, ListElement, method
30
+from woob.capabilities.base import NotAvailable, NotLoaded
31
+from woob.capabilities.housing import (
32 32
     City, Housing, HousingPhoto,
33 33
     UTILITIES, ENERGY_CLASS, POSTS_TYPES, ADVERT_TYPES
34 34
 )
35
-from weboob.tools.capabilities.housing.housing import PricePerMeterFilter
35
+from woob.tools.capabilities.housing.housing import PricePerMeterFilter
36 36
 
37 37
 from .constants import AVAILABLE_TYPES, QUERY_TYPES, QUERY_HOUSE_TYPES
38 38
 

+ 7
- 7
modules/foncia/test.py View File

@@ -2,28 +2,28 @@
2 2
 
3 3
 # Copyright(C) 2017      Phyks (Lucas Verney)
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 
22
-from weboob.capabilities.housing import (
22
+from woob.capabilities.housing import (
23 23
     Query, POSTS_TYPES, ADVERT_TYPES
24 24
 )
25
-from weboob.tools.capabilities.housing.housing_test import HousingTest
26
-from weboob.tools.test import BackendTest
25
+from woob.tools.capabilities.housing.housing_test import HousingTest
26
+from woob.tools.test import BackendTest
27 27
 
28 28
 
29 29
 class FonciaTest(BackendTest, HousingTest):

+ 4
- 4
modules/leboncoin/__init__.py View File

@@ -2,20 +2,20 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21 21
 from .module import LeboncoinModule

+ 7
- 7
modules/leboncoin/browser.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.tools.json import json
20
+from woob.tools.json import json
21 21
 
22
-from weboob.browser import PagesBrowser, URL
23
-from weboob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
22
+from woob.browser import PagesBrowser, URL
23
+from woob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
24 24
                                          HOUSE_TYPES, ADVERT_TYPES)
25 25
 from .pages import CityListPage, HousingListPage, HousingPage, PhonePage, HomePage
26 26
 

+ 6
- 6
modules/leboncoin/module.py View File

@@ -2,24 +2,24 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.tools.backend import Module
22
-from weboob.capabilities.housing import (CapHousing, Housing, HousingPhoto)
21
+from woob.tools.backend import Module
22
+from woob.capabilities.housing import (CapHousing, Housing, HousingPhoto)
23 23
 from .browser import LeboncoinBrowser
24 24
 
25 25
 

+ 12
- 12
modules/leboncoin/pages.py View File

@@ -2,35 +2,35 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 from __future__ import unicode_literals
20 20
 
21 21
 import requests
22 22
 
23
-from weboob.browser.pages import HTMLPage, JsonPage, pagination
24
-from weboob.browser.elements import ItemElement, ListElement, method, DictElement
25
-from weboob.capabilities.base import Currency as BaseCurrency
26
-from weboob.browser.filters.standard import (CleanText, CleanDecimal, _Filter,
23
+from woob.browser.pages import HTMLPage, JsonPage, pagination
24
+from woob.browser.elements import ItemElement, ListElement, method, DictElement
25
+from woob.capabilities.base import Currency as BaseCurrency
26
+from woob.browser.filters.standard import (CleanText, CleanDecimal, _Filter,
27 27
                                              Env, DateTime, Format)
28
-from weboob.browser.filters.json import Dict
29
-from weboob.capabilities.housing import (City, Housing, HousingPhoto,
28
+from woob.browser.filters.json import Dict
29
+from woob.capabilities.housing import (City, Housing, HousingPhoto,
30 30
                                          UTILITIES, ENERGY_CLASS, POSTS_TYPES,
31 31
                                          ADVERT_TYPES, HOUSE_TYPES)
32
-from weboob.capabilities.base import NotAvailable
33
-from weboob.tools.capabilities.housing.housing import PricePerMeterFilter
32
+from woob.capabilities.base import NotAvailable
33
+from woob.tools.capabilities.housing.housing import PricePerMeterFilter
34 34
 
35 35
 from decimal import Decimal
36 36
 from lxml import etree

+ 8
- 8
modules/leboncoin/test.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.tools.test import BackendTest
21
-from weboob.tools.value import Value
22
-from weboob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
23
-from weboob.tools.capabilities.housing.housing_test import HousingTest
20
+from woob.tools.test import BackendTest
21
+from woob.tools.value import Value
22
+from woob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
23
+from woob.tools.capabilities.housing.housing_test import HousingTest
24 24
 
25 25
 
26 26
 class LeboncoinTest(BackendTest, HousingTest):

+ 4
- 4
modules/logicimmo/__init__.py View File

@@ -2,20 +2,20 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21 21
 from .module import LogicimmoModule

+ 7
- 7
modules/logicimmo/browser.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.browser import PagesBrowser, URL
22
-from weboob.browser.profiles import Firefox
23
-from weboob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
21
+from woob.browser import PagesBrowser, URL
22
+from woob.browser.profiles import Firefox
23
+from woob.capabilities.housing import (TypeNotSupported, POSTS_TYPES,
24 24
                                          HOUSE_TYPES)
25 25
 from .pages import CitiesPage, SearchPage, HousingPage, PhonePage
26 26
 

+ 7
- 7
modules/logicimmo/module.py View File

@@ -2,26 +2,26 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.tools.backend import Module
22
-from weboob.capabilities.housing import (CapHousing, Housing, HousingPhoto,
21
+from woob.tools.backend import Module
22
+from woob.capabilities.housing import (CapHousing, Housing, HousingPhoto,
23 23
                                          ADVERT_TYPES)
24
-from weboob.capabilities.base import UserError
24
+from woob.capabilities.base import UserError
25 25
 from .browser import LogicimmoBrowser
26 26
 
27 27
 

+ 13
- 13
modules/logicimmo/pages.py View File

@@ -2,36 +2,36 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 from __future__ import unicode_literals
21 21
 
22
-from weboob.browser.pages import HTMLPage, JsonPage
23
-from weboob.browser.elements import ItemElement, ListElement, DictElement, method
24
-from weboob.browser.filters.json import Dict
25
-from weboob.browser.filters.standard import (Currency, Format, CleanText,
22
+from woob.browser.pages import HTMLPage, JsonPage
23
+from woob.browser.elements import ItemElement, ListElement, DictElement, method
24
+from woob.browser.filters.json import Dict
25
+from woob.browser.filters.standard import (Currency, Format, CleanText,
26 26
                                              Regexp, CleanDecimal, Date, Env,
27 27
                                              BrowserURL)
28
-from weboob.browser.filters.html import Attr, XPath, CleanHTML
29
-from weboob.capabilities.housing import (Housing, HousingPhoto, City,
28
+from woob.browser.filters.html import Attr, XPath, CleanHTML
29
+from woob.capabilities.housing import (Housing, HousingPhoto, City,
30 30
                                          UTILITIES, ENERGY_CLASS, POSTS_TYPES,
31 31
                                          ADVERT_TYPES, HOUSE_TYPES)
32
-from weboob.capabilities.base import NotAvailable, NotLoaded
33
-from weboob.tools.capabilities.housing.housing import PricePerMeterFilter
34
-from weboob.tools.compat import urljoin
32
+from woob.capabilities.base import NotAvailable, NotLoaded
33
+from woob.tools.capabilities.housing.housing import PricePerMeterFilter
34
+from woob.tools.compat import urljoin
35 35
 
36 36
 
37 37
 class CitiesPage(JsonPage):

+ 7
- 7
modules/logicimmo/test.py View File

@@ -2,24 +2,24 @@
2 2
 
3 3
 # Copyright(C) 2014      Bezleputh
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
21
-from weboob.tools.test import BackendTest
22
-from weboob.tools.capabilities.housing.housing_test import HousingTest
20
+from woob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
21
+from woob.tools.test import BackendTest
22
+from woob.tools.capabilities.housing.housing_test import HousingTest
23 23
 
24 24
 
25 25
 class LogicimmoTest(BackendTest, HousingTest):

+ 7
- 7
modules/pap/browser.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2012 Romain Bignon
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.browser import PagesBrowser, URL
22
-from weboob.capabilities.housing import TypeNotSupported, POSTS_TYPES
23
-from weboob.tools.compat import urlencode
21
+from woob.browser import PagesBrowser, URL
22
+from woob.capabilities.housing import TypeNotSupported, POSTS_TYPES
23
+from woob.tools.compat import urlencode
24 24
 
25 25
 from .pages import HousingPage, CitiesPage
26 26
 from .constants import TYPES, RET

+ 1
- 1
modules/pap/constants.py View File

@@ -1,4 +1,4 @@
1
-from weboob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
1
+from woob.capabilities.housing import POSTS_TYPES, HOUSE_TYPES
2 2
 
3 3
 TYPES = {POSTS_TYPES.RENT: 'location',
4 4
          POSTS_TYPES.FURNISHED_RENT: 'location',

+ 7
- 7
modules/pap/module.py View File

@@ -2,25 +2,25 @@
2 2
 
3 3
 # Copyright(C) 2012 Romain Bignon
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20 20
 
21
-from weboob.capabilities.housing import (CapHousing, Housing, HousingPhoto,
21
+from woob.capabilities.housing import (CapHousing, Housing, HousingPhoto,
22 22
                                          ADVERT_TYPES)
23
-from weboob.tools.backend import Module
23
+from woob.tools.backend import Module
24 24
 
25 25
 from .browser import PapBrowser
26 26
 
@@ -31,7 +31,7 @@ __all__ = ['PapModule']
31 31
 class PapModule(Module, CapHousing):
32 32
     NAME = 'pap'
33 33
     MAINTAINER = u'Romain Bignon'
34
-    EMAIL = 'romain@weboob.org'
34
+    EMAIL = 'romain@woob.org'
35 35
     VERSION = '2.1'
36 36
     DESCRIPTION = 'French housing website'
37 37
     LICENSE = 'AGPLv3+'

+ 13
- 13
modules/pap/pages.py View File

@@ -2,35 +2,35 @@
2 2
 
3 3
 # Copyright(C) 2012 Romain Bignon
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 from __future__ import unicode_literals
20 20
 from decimal import Decimal
21 21
 
22
-from weboob.tools.date import parse_french_date
23
-from weboob.browser.pages import HTMLPage, JsonPage, pagination
24
-from weboob.browser.elements import ItemElement, ListElement, DictElement, method
25
-from weboob.browser.filters.standard import (CleanText, CleanDecimal, Regexp,
22
+from woob.tools.date import parse_french_date
23
+from woob.browser.pages import HTMLPage, JsonPage, pagination
24
+from woob.browser.elements import ItemElement, ListElement, DictElement, method
25
+from woob.browser.filters.standard import (CleanText, CleanDecimal, Regexp,
26 26
                                              Env, BrowserURL, Format, Currency)
27
-from weboob.browser.filters.html import Attr, Link, XPath, CleanHTML
28
-from weboob.browser.filters.json import Dict
29
-from weboob.capabilities.base import NotAvailable, NotLoaded
30
-from weboob.capabilities.housing import (Housing, City, HousingPhoto,
27
+from woob.browser.filters.html import Attr, Link, XPath, CleanHTML
28
+from woob.browser.filters.json import Dict
29
+from woob.capabilities.base import NotAvailable, NotLoaded
30
+from woob.capabilities.housing import (Housing, City, HousingPhoto,
31 31
                                          UTILITIES, ENERGY_CLASS, POSTS_TYPES,
32 32
                                          ADVERT_TYPES, HOUSE_TYPES)
33
-from weboob.tools.capabilities.housing.housing import PricePerMeterFilter
33
+from woob.tools.capabilities.housing.housing import PricePerMeterFilter
34 34
 
35 35
 
36 36
 class CitiesPage(JsonPage):

+ 7
- 7
modules/pap/test.py View File

@@ -2,24 +2,24 @@
2 2
 
3 3
 # Copyright(C) 2012  Romain Bignon
4 4
 #
5
-# This file is part of a weboob module.
5
+# This file is part of a woob module.
6 6
 #
7
-# This weboob module is free software: you can redistribute it and/or modify
7
+# This woob module is free software: you can redistribute it and/or modify
8 8
 # it under the terms of the GNU Affero General Public License as published by
9 9
 # the Free Software Foundation, either version 3 of the License, or
10 10
 # (at your option) any later version.
11 11
 #
12
-# This weboob module is distributed in the hope that it will be useful,
12
+# This woob module is distributed in the hope that it will be useful,
13 13
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 14
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 15
 # GNU Affero General Public License for more details.
16 16
 #
17 17
 # You should have received a copy of the GNU Affero General Public License
18
-# along with this weboob module. If not, see <http://www.gnu.org/licenses/>.
18
+# along with this woob module. If not, see <http://www.gnu.org/licenses/>.
19 19
 
20
-from weboob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
21
-from weboob.tools.test import BackendTest
22
-from weboob.tools.capabilities.housing.housing_test import HousingTest
20
+from woob.capabilities.housing import Query, POSTS_TYPES, ADVERT_TYPES
21
+from woob.tools.test import BackendTest
22
+from woob.tools.capabilities.housing.housing_test import HousingTest
23 23
 
24 24
 
25 25
 class PapTest(BackendTest, HousingTest):

+ 1
- 2
requirements.txt View File

@@ -16,6 +16,5 @@ titlecase
16 16
 unidecode
17 17
 vobject
18 18
 whoosh
19
-git+https://git.weboob.org/weboob/weboob/
20
-git+https://git.weboob.org/weboob/modules/
19
+git+https://gitlab.com/woob/modules/
21 20
 money