NewsByText-LAHacks2019

所属分类:后台框架
开发工具:Jupyter Notebook
文件大小:88KB
下载次数:0
上传日期:2022-07-07 23:02:03
上 传 者sh-1993
说明:  基于Django的消息传递服务,为用户提供最流行的新闻摘要,并翻译为他们的日志...
(Django-based messaging service that provides users with a summary of the most trending news, translated into their local language. ?? Won ‘Honey Best Fairness Hack’ award at UCLAHacks 2019.)

文件列表:
FindTrends&Translate.ipynb (9047, 2020-06-26)
backend (0, 2020-06-26)
backend\SMSNews (0, 2020-06-26)
backend\SMSNews\bot (0, 2020-06-26)
backend\SMSNews\bot\admin.py (123, 2020-06-26)
backend\SMSNews\bot\apps.py (81, 2020-06-26)
backend\SMSNews\bot\diffbot (0, 2020-06-26)
backend\SMSNews\bot\diffbot\INSTALL.md (159, 2020-06-26)
backend\SMSNews\bot\diffbot\client.py (3088, 2020-06-26)
backend\SMSNews\bot\diffbot\config.py (91, 2020-06-26)
backend\SMSNews\bot\diffbot\config.py.example (68, 2020-06-26)
backend\SMSNews\bot\diffbot\diffbot.ipynb (11233, 2020-06-26)
backend\SMSNews\bot\diffbot\example.py (2682, 2020-06-26)
backend\SMSNews\bot\diffbot\requirements.txt (16, 2020-06-26)
backend\SMSNews\bot\diffbot\summarizer.py (986, 2020-06-26)
backend\SMSNews\bot\diffbot\tests (0, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures (0, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures\analyze.json (188, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures\article.json (19447, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures\frontpage.json (312366, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures\image.json (398, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\test_fixtures\product.json (1757, 2020-06-26)
backend\SMSNews\bot\diffbot\tests\unit_test.py (2734, 2020-06-26)
diffbot (0, 2020-06-26)
diffbot\INSTALL.md (159, 2020-06-26)
diffbot\client.py (3088, 2020-06-26)
diffbot\config.py (91, 2020-06-26)
diffbot\config.py.example (68, 2020-06-26)
diffbot\diffbot.ipynb (10792, 2020-06-26)
diffbot\example.py (2682, 2020-06-26)
diffbot\requirements.txt (16, 2020-06-26)
diffbot\tests (0, 2020-06-26)
diffbot\tests\test_fixtures (0, 2020-06-26)
diffbot\tests\test_fixtures\analyze.json (188, 2020-06-26)
diffbot\tests\test_fixtures\article.json (19447, 2020-06-26)
diffbot\tests\test_fixtures\frontpage.json (312366, 2020-06-26)
... ...

## Inspiration A large fraction of the population is still not connected to the internet. Modern web and native apps cater well to the tech savy audience. However, the users with not-so-advanced phones, no internet connection or even the elderly may be left behind. ## What it does NewsByText leverages the Twilio API and the ubiquitous text messaging feature on mobile phones to provide our users with latest news without the need of internet. We have built a chat bot based service that users can interact with to read latest news. The users select their region and are then presented with a list of topics that have been trending in the last 1.5 hours. Upon selecting any of these topics, we scrape related articles from the internet, summarize it using deep learning and send back a short summary of the news as SMS. The users have option to read summaries from more sources and even have it translated to their language (currently supports Hindi) ## How we built it We used several APIs to put together this hack. We only have a back-end and no front-end, as the user interacts with our service using the stock SMS/text messaging app in their phones. The SMS infrastructure is provided using Twilio API. Upon receiving an SMS, the Twilio API calls a webhook on our backend. The backend is in Django. We fetch the latest trending topics for the user using the Taboola API. We filter the list of trends and present them to the user. Next, upon selecting a topic, we need to fetch its summary. We use some URLs of articles for the selected topic to fetch the article content. This is then converted into a short summary using the DeepAI API and sent back to the user as SMS. In case user has opted for news in Hindi, we use the Google Cloud Translation API to translate the summary into Hindi before sending it back. All the above is in a Django based backend service. ## Demo video https://youtu.be/nqDG_reiG7c ## Challenges we ran into Here are some of them: - Trending topics may have very similar topics because they co-occur in news. We used similarity based heuristics and a network graph to eliminate them. - Maintaining state of users in backend ## Accomplishments that we are proud of - Successfully implemented the chat flow for user interaction using the SMS app - We need minimal and simple inputs and interactions from user - Presenting the user only with relevant and non-overlapping trend topics ## What We learned - Using Twilio to target users using just SMS ## What's next for NewsByText - Allow users to select categories for news

近期下载者

相关文件


收藏者