Giter Site home page Giter Site logo

sjbitcode / daca-news Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 3.38 MB

A news aggregation site specifically for DACA related articles, updated hourly. Built with Django ❤️

Home Page: https://daca.news

Python 53.01% Dockerfile 0.50% Shell 0.47% HTML 41.23% JavaScript 4.79%
daca immigration django

daca-news's Introduction

daca.news

A news aggregation site specifically for DACA related articles, updated hourly. Check it out here!

daca.news

APIs used:

  • NewsAPI
  • Bing News Search

Built with:

  • Django
  • Huey (for periodic tasks)
  • Javascript

Deployed:

  • to DigitalOcean
  • using Dokku

daca-news's People

Contributors

sjbitcode avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

daca-news's Issues

Implement fuzzy matching for similar titled articles

Problem

As of 12/28/20, I came across three similarly titled articles, the difference is that some titles have the source included in it, ex:

  • In the new year, take a new look at immigration – starting with DACA
  • In the new year, take a new look at immigration – starting with DACA | Charlotte Observer
  • In the new year, take a new look at immigration – starting with DACA | Raleigh News & Observer

In this function of the article pipeline, I implement a function to check article titles 15 days prior and ahead for the same title.

Some solutions:

Dockerize project

Summary

Sketch out project structure with Docker. The two main objectives for this project is to have the email service and a simple web interface; together these are two processes that will need to be managed with Docker.

Source articles from NewsAPI

Summary

The API we are using is called NewsAPI.
Good news, they have a Python client and a Top Headlines endpoint.

Task

  • Test endpoint(s)
  • Parse data
  • Brainstorm search terms for endpoint(s)
  • Use Cryptobrief as an example on how to use the NewsAPI

Discoveries

  • curl https://newsapi.org/v2/everything\?apiKey\=b49ff08901ba439fbb219b3e8ad37a48\&q\=daca | jq

Use Bing for data backfill

Pull from Microsoft Azure Bing News Search to populate from articles, since NewsApi only allows a month prior.

Update search UI

Trigger a search from clicking source tags, in addition to search bar input.

Setup database

Decide on a db for the project (sqlite or postgres)

Mock up table schemas that we might need to use.


Maybe something like:

Article  # content that is pulled from news sources
  - title (char)
  - url (char)
  - category (fk?)
  - created_at (datetime)

Digest  # email that is sent. Can reference many articles
  - sent_at (datetime)

Recipient  # a user that receives the email digest.
  - name (char)
  - email (char)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.