04-13-2019
Why are you doing this with a shell script?
Is this homework at school?
Web developers do not do this "grab JSON from the net and process it" using shell because there are more modern tools and languages to do this. CGI and shell was used decades ago. Now, we use modern tools made for this kind of processing.
So, I kindly ask you again, why are you doing this using a shell script like bash?
What are you planning to do with the data after you retrieve it using a RESTFUL API?
Do you want to block the processing (the script) while waiting for the network call to return?
If so, why are you not doing this API call asynchronously using an AJAX function? Or more "2019'ish", with an asynchronous promise?
This User Gave Thanks to Neo For This Post:
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi guys!
I created a database using mysql in bash now i would like to download weather info from the data.(temp, date and time)...and just store this in the database to display after every 3 hours or so...
i have tried to get the website using wget and now dont exactly now how to go from here... (0 Replies)
Discussion started by: vadharah
0 Replies
2. Shell Programming and Scripting
hi everybody,
Asking for something that I´m not sure if it´s possible to implement. I hope be clear enough.
Well, my issue is that I´m looking how to copy or extract a particular table content of a website. I get the content from a external feed (Iframe format), the content is updated every... (1 Reply)
Discussion started by: cgkmal
1 Replies
3. Shell Programming and Scripting
Hello Everyone,
I'm trying to write a python script that will go to the following website and grab all the data on the page. The page refreshes regularly and the number of flights is different.
Untitled Document
What I wanted to do was grab all the data (except for top three row containing... (5 Replies)
Discussion started by: jl487
5 Replies
4. Shell Programming and Scripting
Hi Experts,
I need a unix shell script which can copy the xml file from the below pasted website and paste in in my unix directory.
http://www.westpac.co.nz/olcontent/olcontent.nsf/fx.xml
Thanks in Advance... (8 Replies)
Discussion started by: phani333
8 Replies
5. Shell Programming and Scripting
Hi,
I have a script to retrieve data files from server and store them in a directory on local disk. The script runs everyday as cron job. But now those files are too many so my boss wants me to put the files into different directories base on dates.
Those files look like this:
... (4 Replies)
Discussion started by: leafei
4 Replies
6. UNIX for Advanced & Expert Users
Is there a command that display all network info. I'm looking for ip address, subnet mask, gateway, and dns. If there isn't a single command could someone please write me a shellscript that can do this? (8 Replies)
Discussion started by: cokedude
8 Replies
7. Shell Programming and Scripting
Hi,
I need to call an API (GetUsageDetails)from inside a shell script which takes an input argument acct_nbr.
The output of API will be like :
<usageAccum accumId="450" accumCaptn="PM_125" inclUnits="1410.00" inclUnitsUsed="744.00" shared="true" pooled="false" prorated="false"... (1 Reply)
Discussion started by: rkrish
1 Replies
8. Shell Programming and Scripting
Hello there,
I am a beginner in Perl, and I have a challenging project:
I have to create a program that checks regularly on an online bank account for new operations, it should then feed a database keeping track of all the money going in and out.
Of course the login details of this online... (4 Replies)
Discussion started by: freddie50
4 Replies
9. Shell Programming and Scripting
Hi Everyone,
I need help on figuring out a way to filter some data that I get back from an API. Im able to get all the data that Im looking for but I would like to know a way for me to filter it better. The data that Im getting back is basically 2 rows of data as seen here.
Row 1 ... (25 Replies)
Discussion started by: TheStruggle
25 Replies
LEARN ABOUT DEBIAN
monboob
MONBOOB(1) General Commands Manual MONBOOB(1)
NAME
monboob - Daemon allowing to regularly check for new messages on various websites
SYNOPSIS
monboob [-dqv] [-b backends] [-cnfs] [command [arguments..]]
monboob [--help] [--version]
DESCRIPTION
Daemon allowing to regularly check for new messages on various websites, and send an email for each message, and post a reply to a message
on a website.
Supported websites:
* aum ("Adopte un Mec" French dating website)
* bnporc (BNP Paribas French bank website)
* bouygues (Bouygues Telecom French mobile phone provider)
* dlfp (Da Linux French Page news website)
* ecrans (Ecrans French news website)
* fourchan (4chan image board)
* hds (Histoires de Sexe French erotic novels)
* inrocks (Les Inrocks French news website)
* lefigaro (Le Figaro French newspaper website)
* minutes20 (2 Minutes French newspaper website)
* newsfeed (Loads RSS and Atom feeds from any website)
* okc (OkCupid dating website)
* orange (Orange French mobile phone provider)
* phpbb (phpBB forum)
* presseurop (Presseurop website)
* sfr (SFR French mobile phone provider)
* taz (Taz newspaper website)
MONBOOB COMMANDS
once
Send mails only once, then exit.
post
Pipe with a mail to post message.
run
Run the fetching daemon.
OPTIONS
--version
show program's version number and exit
-h, --help
show this help message and exit
-b BACKENDS, --backends=BACKENDS
what backend(s) to enable (comma separated)
MONBOOB OPTIONS
-S SMTPD, --smtpd=SMTPD
run a fake smtpd server and set the port
LOGGING OPTIONS
-d, --debug
display debug messages
-q, --quiet
display only error messages
-v, --verbose
display info messages
--logging-file=LOGGING_FILE
file to save logs
-a, --save-responses
save every response
RESULTS OPTIONS
-c CONDITION, --condition=CONDITION
filter result items to display given a boolean expression
-n COUNT, --count=COUNT
get a maximum number of results (all backends merged)
-s SELECT, --select=SELECT
select result item keys to display (comma separated)
FORMATTING OPTIONS
-f FORMATTER, --formatter=FORMATTER
select output formatter (csv, htmltable, multiline, simple, table, webkit)
--no-header
do not display header
--no-keys
do not display item keys
-O OUTFILE, --outfile=OUTFILE
file to export result
COPYRIGHT
Copyright(C) 2010-2011 Romain Bignon
For full COPYRIGHT see COPYING file with weboob package.
FILES
"~/.config/weboob/backends"
"~/.config/weboob/monboob"
SEE ALSO
Home page: http://weboob.org/applications/monboob
monboob 0.c 04 May 2012 MONBOOB(1)