Menu

news_tweets

From news_tweets -h

  ./news_tweets -t TYPE (classic or allura. Defaults to allura.)

   -f /path/to/html
    Parses the downloaded HTML of the https://sourceforge.net/news/admin/ or https://sourceforge.net/p/test-wiki/All%20project%20news/ page, and outputs tweetable lines, in the HootSuite import syntax.

   -d DD (Day)
    Days in the future to start the CSV

   -o HH (Offset)
    Time of day to start tweets, 24 hour time. i.e., 17 will put first tweet at 17:45, and then increment an hour at a time.

   -q HH (freQuency)
    Schedule the tweets every f hours. Defaults to 1. Useful on slow news weeks.

   -x
    Adds an entry in http://www.sourceforge-heartbeats.info/ for each tweet

   -i
    Ignore the log file that tells where you left off last time

  ./news_tweets --version
    Display version.

  ./news_tweets {--usage | --help}
    Display this message.

  ./news_tweets proj1 proj2 proj3

  Given a list of projects, produces HTML markup of project name, URL, and description, suitable for pasting directly into a blog post.

To use, save the content of the page https://sourceforge.net/news/admin/ for Classic projects, or https://sourceforge.net/p/test-wiki/All%20project%20news/ for Allura projects, and then run the script using that file as input:

./news_tweets -f ~/Desktop/news_items.html -t classic -d 2 -o 13 -q 1.5 | tee ~/Desktop/news_items.csv

The output file will contain markers every five items to show you the character limit expected by Twitter. The file is formatted for import by Hootsuite. You must edit each line to fit into that character limit, and delete these marker lines before uploading to Hootsuite.


Related

Wiki: tools

MongoDB Logo MongoDB