Skip to content

herijooj/HCnews

Repository files navigation

HC News

the HC version of JRMUNEWS.

gothGirlReading

HCNEWS is a daily news update inspired by JRMUNEWS, you can find more about JRMUNEWS on https://www.instagram.com/jrmunews/

Everyday since 2021 I've been sharing the JRMUNEWS to a group of friends of mine. it is a big text with the holidays that are celebrated that day, news, stock market, sports and etc... kinda like an RSS feed but worse. I love the JRMUNEWS but it is kinda bloated... so I've trying to build a more streamlined version tailored to my friends. The goal is to make something easily customisable but we have to focus on one thing at the time.

Screenshot WhatsApp

Dependencies

HCNEWS requires the following dependencies:

  • xmlstarlet you can find it here
  • pup you can find it here
  • jq you can find it here
  • date you probably already have it, but if you don't you can find it here
  • curl you probably already have it too, but if you don't you can find it here

If you want to run the Telegram bot (WIP) you can run

  pip install -r requirements.txt

the requirements are:

  • python-telegram-bot
  • schedule
  • httpx

if i missed something, take a look into the default.nix file, i'm using nix to manage my dependencies.

Installation

Linux

  1. Install the dependencies using your package manager:
sudo apt install xmlstarlet pup jq date curl 

you may need to install pup from source, i use arch (btw) so i just installed it from the AUR.

  1. Clone this repository:
git clone https://github.com/herijooj/HCnews.git
  1. Go to the directory:
cd HCnews
  1. Make the script executable:
chmod +x hcnews
  1. Run the script:
./hcnews

Usage

./hcnews
    Usage: ./hcnews.sh [options]
    Options:
      -h, --help: show the help message
      -s, --silent: the script will run silently
      -sa, --saints: show the saints of the day with the verbose description
      -n, --news: show the news with the shortened link
      -f, --file: if the output will be to a file"

Example

...
📅 *Hoje é:*
  👑 Dia de Reis
  🙏 Dia da Gratidão

📅 Sem estados com aniversário hoje...

🎵 *Top 10 Músicas* 🎵
  1. BOKeTE - Bad Bunny
  2. DtMF - Bad Bunny
  3. BAILE INoLVIDABLE - Bad Bunny
  4. TURiSTA - Bad Bunny
  5. NUEVAYoL - Bad Bunny
  6. KLOuFRENS - Bad Bunny
  7. VeLDÁ - Bad Bunny, Omar Courtz & Dei V
  8. VOY A LLeVARTE PA PR - Bad Bunny
  9. KETU TeCRÉ - Bad Bunny
  10. WELTiTA - Bad Bunny & Chuwi
📌 De Genius.com/#top-songs

🌧️ *Previsão do tempo* ⛅
     \  /       Parcialmente encoberto
   _ /"".-.     +23(24) °C     
     \_(   ).   ↗ 8 km/h       
     /(___(__)  10 km          
                0.0 mm         
📌 Curitiba

📚 *Você sabia?* 🤔
... apenas cinco mulheres disputaram ate hoje corridas oficiais da Formula 1 e apenas uma pontuou? ...

🎲 *Palpites do Jogo do Bicho* 🐾
🔢 Grupo: 3 (Avestruz 🦩) 8 (Águia 🦅) 12 (Burro 🐴) 17 (Cachorro 🐶) 22 (Cabra 🐐) 
🔟 Dezena: 06 21 46 61 91
💯 Centena: 061 397 511 604 935
🏆 Milhar: 0712 3930 5304 6478 8189
...

Remember, HCNews is supposed to be FUN!

Contributing

If you want to contribute to this project, you can do so by opening a pull request or an issue. If you want to open a pull request, if you can, please open an issue first so we can discuss the changes you want to make.

License

This project is licensed under the GNU General Public License - see the LICENSE file for details

Credits

you can find about the sites that i use to get the data on the script itself.

Contact

About

the HC version of JRMUNEWS

Topics

Resources

License

Unknown, GPL-3.0 licenses found

Licenses found

Unknown
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published