From: Antonio Ospite Date: Fri, 4 Nov 2016 15:08:07 +0000 (+0100) Subject: Initial import X-Git-Url: https://git.ao2.it/experiments/tweeper_composer_test.git/commitdiff_plain/6bd44b800d1a2892495d945030df62f4e30b89a7?ds=sidebyside Initial import --- 6bd44b800d1a2892495d945030df62f4e30b89a7 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); +}