Jump to content

  •     

Photo

Rss Feeds For Latest News Don't Have Description, Pls Fix

rss feeds news pls plato plz fix

  • Please log in to reply
7 replies to this topic

#1 LIKE A B0SS

LIKE A B0SS

    Advanced Member

  • Members
  • PipPipPip
  • 460 posts
  • Location/r/outside

Posted 27 July 2016 - 05:47 PM

There is an j_Ch_Ft_Kp.png Articles button below that gives you RSS link for top news in the whole eWorld, but I want only for the latest news in Bulgaria so I can get notifications from Pushbullet when a new article is published. I edited the link and it worked https://www.erepubli.../Bulgaria/1/rss but every item has the following description:
"Multiplayer strategy game that allows users to rule a country, be an entrepreneur or gather your fellow citizens to start a resistance war. eRepublik the online strategy game.".
 
Pls fix.


Edited by LIKE A B0SS, 28 July 2016 - 07:23 PM.

TJ1AJkd5QRuW_2KZlQiABA.png


#2 Master_rg

Master_rg

    Member

  • Members
  • PipPip
  • 29 posts

Posted 28 July 2016 - 10:09 AM

Maybe this could be something for you, as I'm not sure if eR will fix this problem: The unofficial eRepublik API available at https://api.erepublik-deutschland.de/

 

 

Please take a look at the Articles Interface: You could do a simple call like articles/countries/<your country id here> and get the latest 10 articles published in this country. The returned result would look similar to this: https://json-viewer.com/l/1u


  • LIKE A B0SS likes this

Find useful eRepublik tools at www.eRepublik-Deutschland.de

3450472-1.png


#3 LIKE A B0SS

LIKE A B0SS

    Advanced Member

  • Members
  • PipPipPip
  • 460 posts
  • Location/r/outside

Posted 28 July 2016 - 03:16 PM

Thanks, but I don't know what to do with json :D


TJ1AJkd5QRuW_2KZlQiABA.png


#4 Master_rg

Master_rg

    Member

  • Members
  • PipPip
  • 29 posts

Posted 28 July 2016 - 08:02 PM

Well, how do you publish the news you grabbed from the RSS Feed on Pushbullet? 


  • LIKE A B0SS likes this

Find useful eRepublik tools at www.eRepublik-Deutschland.de

3450472-1.png


#5 LIKE A B0SS

LIKE A B0SS

    Advanced Member

  • Members
  • PipPipPip
  • 460 posts
  • Location/r/outside

Posted 28 July 2016 - 08:09 PM

With the RSS trigger :D

 752fb878d72644b9b29a8e98614b097c.png


TJ1AJkd5QRuW_2KZlQiABA.png


#6 Master_rg

Master_rg

    Member

  • Members
  • PipPip
  • 29 posts

Posted 29 July 2016 - 06:28 AM

I thought you were using some sort of scripting / programming language for your tool :(


  • LIKE A B0SS likes this

Find useful eRepublik tools at www.eRepublik-Deutschland.de

3450472-1.png


#7 LIKE A B0SS

LIKE A B0SS

    Advanced Member

  • Members
  • PipPipPip
  • 460 posts
  • Location/r/outside

Posted 29 July 2016 - 07:26 PM

I actually did it :D With Google Sheets and Google Apps Script :D
 
I used this script to take the data from the api and place it on a sheet like this:
bc8e202e83bf4837aadf93ab3e9dbfb1.png
 
Then I made a new sheet to pick only the items I need and to make them more organized:
45f7296e98b24c3dacf5300b1ab1049d.png
 
Then I found this script and I made 2 separate functions to push link and to push note.
 
Then I had to make my own function.
It is triggered every minute to check for new article ids in the first row of the second sheet. 
After that I made a loop to remove the html tags.
Then I check if there is something left in the description after removing the html tags. 
If there is, I use the function to send a note like this:    pushNote(title, content+ '\n' + url);
If there isn't anything left in the description, I use the other function to send a link only:   pushLink(title, url);
 
Tomorrow I will try to make the script send a new notification if an article title is edited, so I can see when the battle orders are edited.

 

Link to the channel: pushbullet.com/channel?tag=erepublikbg :D


Edited by LIKE A B0SS, 29 July 2016 - 07:31 PM.

  • Master_rg likes this

TJ1AJkd5QRuW_2KZlQiABA.png


#8 Master_rg

Master_rg

    Member

  • Members
  • PipPip
  • 29 posts

Posted 30 July 2016 - 08:54 AM

:o

Good Job!
  • LIKE A B0SS likes this

Find useful eRepublik tools at www.eRepublik-Deutschland.de

3450472-1.png






Also tagged with one or more of these keywords: rss, feeds, news, pls, plato, plz, fix

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users