]> git.madduck.net Git - code/twitter-archiver.git/blob - fetch_tweets.sh

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

README updates
[code/twitter-archiver.git] / fetch_tweets.sh
1 #!/bin/sh
2 #
3 # fetchtweets.sh
4 #
5 # Convenience wrapper for tweetfetch.py
6 #
7 # Using ./tweets/.sentinel, it iteratively obtains new tweets since the last
8 # run, and can thus be run regularly from cron without arguments.
9 #
10 # Copyright © 2017–2019 by martin f. krafft <madduck@madduck.net>
11 # Released under the Artistic Licence 2.0
12 #
13
14 MYDIR="${0%/*}"
15 cd "$MYDIR"
16
17 export LC_ALL=$(locale -a | grep utf8 | head -1)
18
19 ./tweetfetch.py $(cat tweets/.sentinel)