codekasten/osm/bulk-message/info.txt
lars f3c33396cc OSM scripts:
* moved the bulk mailing script to a different location
* added a script to improve the output of the OSM-QA data for MV
2009-01-06 10:46:00 +00:00

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