-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathop-on.sh
executable file
·81 lines (62 loc) · 1.89 KB
/
op-on.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
## Opinions/buzz on a topic across a
## set of media agencies (of repute).
## For a curious human reader.
##
## Usage: ./op-on.sh "<TOPIC>"
##
topic=$1
sleepTimeSecs=5s
browser=firefox
profileName="test"
if [ -z ""$topic"" ]
then
echo 'Please enter a topic to look up.'
echo 'Usage: ./op-on.sh "<TOPIC>"'
exit 1
fi
echo "Looking up info on: "$topic""
# TOI
$browser -P $profileName https://timesofindia.indiatimes.com/topic/"$topic"&
# Times Now:
sleep $sleepTimeSecs;
$browser -P $profileName https://www.timesnownews.com/searchresults?searchterm="$topic"&
# IE
sleep $sleepTimeSecs;
$browser -P $profileName https://indianexpress.com/?s="$topic"&
# India Today
sleep $sleepTimeSecs;
$browser -P $profileName https://www.indiatoday.in/topic/"$topic"&
# WION
sleep $sleepTimeSecs;
$browser -P $profileName https://www.wionews.com/search?q="$topic"&
# NDTV
sleep $sleepTimeSecs;
$browser -P $profileName https://www.ndtv.com/topic/"$topic"&
# Hindu
sleep $sleepTimeSecs;
$browser -P $profileName https://www.thehindu.com/search/?q="$topic"&
# HT
sleep $sleepTimeSecs;
$browser -P $profileName https://www.hindustantimes.com/topic/"$topic"&
# Wire: TODO: Fix me! Lacks queryable view, despite the api.
# Marathi Wire is fine.
#sleep $sleepTimeSecs;
#$browser -P $profileName https://thewire.in/search&
# Print
sleep $sleepTimeSecs;
$browser -P $profileName https://theprint.in/?s="$topic"&
# Quint
sleep $sleepTimeSecs;
$browser -P $profileName https://www.thequint.com/search?q="$topic"&
# The Week
sleep $sleepTimeSecs;
$browser -P $profileName https://www.theweek.in/search.html?q="$topic"&
# Reuters
sleep $sleepTimeSecs;
$browser -P $profileName https://www.reuters.com/search/news?blob="$topic"&
# BBC
sleep $sleepTimeSecs;
$browser -P $profileName https://www.bbc.co.uk/search?q="$topic"&
# Reddit
sleep $sleepTimeSecs;
$browser -P $profileName https://www.reddit.com/search?q="$topic"&