Giter VIP home page Giter VIP logo

nyuad-spammer's People

Contributors

anchor14 avatar arantzardzm avatar khalidhosani avatar simonseo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nyuad-spammer's Issues

Using json2csv programmatically

I want to use json2csv programmatically within the flask server. How do I do this?

Ideally there will be a method that takes a 2 arguments: either of [json string/python dict/json filename/json file] and an output filename. It will save any of these to a CSV file of the given output filename.

Maybe we can just write a few lines of code that does this. I think the json2csv library is unnecessarily big for our usage.

Scrapper Stopping

Scrapper stops when attempting to create a new file because OS does not want to fork()

Send announcements in sorted order?

Currently, the order in which the announcements are listed on the student portal (more or less according to postId) is different from the order in which the announcements are sent to the user when there are multiple posts in between scraping.

Syncing the order will definitely be helpful to see if the bot's doing things right, but don't know if this is really necessary for other users

topics/categories update

Student Portal has changed the categories. Need to decide whether to:

  1. Users subscribe to everything
  2. Update all topics/categories

We choose 1. Not because we are lazy though.

Subscription categories for users

There are two columns in the csv file we get from scraping the Student Portal.
The first is category_name and the second are topic. We want to decide which one we should give as options to the user to subscribe to.

category_name are things like [News & Information, Learning & Development, Job Opportunities, Internships & Volunteering, etc]
topic are things like [Academic Affairs, Academics, Campus Life, Community Outreach, etc]

For now, we are moving on with topics as we thought it is closer to the original idea we had. However, we're open to discussions about this.

API for sending JSON to DB Server

  1. scrapper sends json as string in the request body to /json
  2. db server parses the string and change it into csv file
  3. use readcsv function that's already defined by khaled to read csv file
  4. use db.inject to inject data

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.