36 lines
1 KiB
Text
36 lines
1 KiB
Text
How to send mails to many OSM users?
|
|
====================================
|
|
|
|
1) generate a list of OSM usernames, that should be the target of a mail
|
|
|
|
2) retrieve the user id for each username (via the shell script)
|
|
|
|
3) edit the mail text in the python script
|
|
|
|
4) run the following command:
|
|
( \
|
|
cat html_header.inc; cat FILE_WITH_USERS_AND_IDS | while read line; \
|
|
do username="$(echo "$line" | cut -f 1)"; \
|
|
user_id="$(echo "$line" | cut -f 2)"; \
|
|
./generate_send_message_url.py "$username" "$user_id"; \
|
|
done; \
|
|
cat html_footer.inc \
|
|
) >mail_links.html
|
|
|
|
5) open the html file in your favourite browser
|
|
|
|
6) login to your openstreetmap account
|
|
|
|
7) click on each of the links in the local html file to send a single message
|
|
|
|
|
|
|
|
How to get all active mappers of an area?
|
|
=========================================
|
|
|
|
1) download a snapshot of the region from http://geofabrik.de
|
|
|
|
2) extract the users and sort them by the number of objects:
|
|
grep user= mecklenburg-vorpommern.osm | cut -d '"' -f 6 \
|
|
| sort | uniq -c | sort -nr
|
|
|