LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Could you host on GIT a simple plain text file with headlines / news? (https://www.linuxquestions.org/questions/general-10/could-you-host-on-git-a-simple-plain-text-file-with-headlines-news-4175587307/)

Xeratul 08-17-2016 11:30 PM

Could you host on GIT a simple plain text file with headlines / news?
 
Hi,

As Frank said the plague is that today websites are stuffed with videos, java, ads, .... well, awful for mobiles and getting the desired info.

Simple thing does not exist today. So, let's make it!

Could someone host on git a simple txt file with updating it daily over crontab?

Nothing complicated, for instance $HOME/uploadnews.sh :

take a nice webpage maybe better than CNN.
Code:

#/bin/sh
cd
mkdir tmp
cd tmp
date >  plaintext-news.txt
elinks -dump-width 80 -force-html www.cnn.com  >> plaintext-news.txt
# fput / git... to upload on git,ftp,...
echo FINITO

Update this script the way you want.

place this into crontab (with crontab -e ):
Code:

30 8 * * * screen -d -m  bash $HOME/uploadnews.sh

Many thanks in advance

Rinndalir 08-24-2016 02:15 PM

I didn't know he was internet savvy.

https://www.rottentomatoes.com/m/frank_2014/

Jjanel 08-27-2016 06:12 AM

This post motivated me to 'learn' [sign up for] git!
https://guides.github.com/activities/hello-world
( from https://github.com/new )
Cool! Thanks!

ugjka 08-27-2016 11:35 AM

Why git?

Habitual 08-27-2016 11:40 AM

Xeratul:
Do you need hosting for this?
I'm confused again still...


All times are GMT -5. The time now is 07:22 AM.