Comments (2)
This feature has been added, it now supports pulling of current headlines. I'm not sure how I plan to implement choosing to pull any more information for summary than that, as inclusively adding everything to the DCP from the articles would be too much for the API to handle. Possibly if Franklin is asked a question about the news, it can decide if it's a question about news specifically, and then from that discern which article to pull more information on to summarize... but this has yet to be implemented.
Note that the implementation of this currently depends on cronjob scripts that pull the news articles, parse their JSON with jq '.["articles"] | .[] | .title'
, and then generate a line by line list of articles in the file wn.txt
for Franklin to pull headlines from.
The cronjob in it's entirety looks something like: */1 * * * * jq '.["articles"] | .[] | .title' -r /home/franklin/Franklin/worldnews.txt| grep -v '\[Removed\]' | grep ".\{45,\}" | sort -R | head -n 5 | sed -e 's/.*\:\ \+//' | sed -e "s/[’|‘|'|”]//" | tr '\n' '+' | sed -e 's/+/. /g' > /home/franklin/Franklin/wn.txt
It can be found in cronjobs/jobs.txt
.
Headlines are fetched from: newsapi.org
from franklin.
RIP Zed.
Love you buddy, hope it's sunny where you're at.
from franklin.
Related Issues (11)
- hazeyez asked review this code and tell me everything that is wrong or bad about it: https://github.com/oxagast/Franklin/blob/main/franklin.pl with hash a0912e0e HOT 1
- Using local api HOT 1
- Implement a 'continue' function HOT 1
- hazeyez asked detail all errors in this code: https://raw.githubusercontent.com/oxagast/Franklin/main/franklin.pl with hash d8ccfeed HOT 1
- "continue" command fails to account for a missing string of text in `continue [TXID] 1` HOT 1
- Be able to read and interpret resolved link text HOT 1
- Respond to messages sent via PM too HOT 1
- A way to hide the TXID on selected channels HOT 2
- Continually rerolling cache user summeries into contextual prelude HOT 5
- Chat history is leaked between networks and channels HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from franklin.