add example script - tscrape - twitter scraper
HTML git clone git://git.codemadness.org/tscrape
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 0bd218fc197cc1f815ff5a6d19d3f4e6ef70969f
DIR parent b47a90e9e77871c473f8c4d1db048da5b2b2ef31
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sat, 13 May 2017 13:46:40 +0200
add example script
Diffstat:
A example.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)
---
DIR diff --git a/example.sh b/example.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+t() {
+ curl --http1.0 -H 'User-Agent:' -s "$2" | tscrape | sed 's@$@ '$1'@g'
+}
+
+(
+t 'tedunangst' 'https://twitter.com/tedunangst' &
+t 'richfelker' 'https://twitter.com/richfelker' &
+t 'transip' 'https://twitter.com/transip' &
+wait
+) | sort -k 1rn -t " " | awk -F " " '{
+ printf("%-16.16s %-10.10s %-20.20s: %s\n",
+ $2, $6, $5, $3);
+}'