This is a collection of scripts for the purpose of building a consolidated page of tweets and podcast episodes of Security Now.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
web
.gitignore
README.md
bootstrap.php
composer.json
composer.lock
generate_msg
get_episodes
get_tweets
update.sh

README.md

This is a collection of scripts for the purpose of building a consolidated page of tweets and podcast episodes of Security Now.

The collection consists of three scripts; one for pulling episode information from twit.com, one for pulling tweets from Steve Gibsons (SGgrc) twitter feed and one script for combining this information into a nice consolidated view.

Setup

First of all, run composer install to install the packages used.

You need to add a file called config.php to the directory. The file holds the details from Twitter and Google Analytics

<?php

// Twitter
define('TWITTER_CONSUMER_KEY', '');
define('TWITTER_CONSUMER_SECRET', '');
define('TWITTER_ACCESS_TOKEN', '');
define('TWITTER_ACCESS_TOKEN_SECRET', '');

// Google Analytics
define('GA_ID', '');
define('GA_DOMAIN', '');

Then it's time to collect the data.

Run the following scripts to update the dataset:

./get_episodes
./get_tweets

Now we are ready to generate the pages:

./generate_msg > web/index.html
./generate_msg full > web/full.html

That's it.

License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.