From 6bd44b800d1a2892495d945030df62f4e30b89a7 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Fri, 4 Nov 2016 16:08:07 +0100 Subject: [PATCH] Initial import --- README | 18 ++++++++++++++++++ composer.json | 7 +++++++ tweeper_test | 17 +++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 README create mode 100644 composer.json create mode 100755 tweeper_test diff --git a/README b/README new file mode 100644 index 0000000..f39a29f --- /dev/null +++ b/README @@ -0,0 +1,18 @@ +Tweeper is a web scraper to convert popular social media sites to RSS (e.g. +Twitter.com, Instagram.com), see + +For the source code and more details see: + + https://git.ao2.it/tweeper.git + + +This project shows an example of using tweeper via composer: + + $ composer install + $ ./tweeper_test + +After "composer install" a more complete example app is also available in the +"vendor/bin" directory: + + $ ./vendor/bin/tweeper https://twitter.com/ao2it + $ ./vendor/bin/tweeper https://www.instagram.com/comunedinapoli/ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1581b91 --- /dev/null +++ b/composer.json @@ -0,0 +1,7 @@ +{ + "name": "ao2/tweeper_composer_test", + "require": { + "ao2/tweeper": "dev-master" + }, + "bin": ["tweeper_test"] +} diff --git a/tweeper_test b/tweeper_test new file mode 100755 index 0000000..422ba16 --- /dev/null +++ b/tweeper_test @@ -0,0 +1,17 @@ +#!/usr/bin/env php +tweep('https://twitter.com/ao2it'); +if (is_null($output)) { + exit(1); +} + +$output = $tweeper->tweep('https://www.instagram.com/comunedinapoli/'); +if (is_null($output)) { + exit(1); +} -- 2.1.4