Giter VIP home page Giter VIP logo

ec601_api_project's People

Contributors

ethanhou99 avatar

Watchers

 avatar

ec601_api_project's Issues

code review

Hi Ethan, I read your code and I think you've done a great job.

  • Your program is divided into three parts: tweepy, ffmpeg and google vision. The function of the API is declared clearly, which is friendly to the users.

  • Your comments for the code are also readable. Those information are quite helpful for the users who do not familiar with the APIs used in our program.

  • The tweeter_api program can conduct the whole function by presenting keys from google and tweet.

Here are some suggestions:

  • I think it is a good idea to add some resources about environment settings and API install information.

  • To make to output display the information more directly, I recommend you to try to use PIL image library to print text message on pictures.

Code review 2

Hi Ethan,

Seems like I am the second person providing code review.

First of all, your readme file was very helpful so that the documentation let me know where to look for files.

You code is well organized with additional readme files, but I noticed a lack of comments. Comments are helpful for you or for anyone who might want to adapt your code to their own application. For the Google Video Intelligence it is helpful to have comments even if you took the sample code directly from Google help files (including the link at the top would be nice too).

Your variable naming is very good and intuitive. Your code is also modular which makes it easy to read.

However instead of having the user edit your code, you can have the twitter handle passed as a command line argument. In addition the keys could be added to the environment so that you can push your code without worrying about accidentally posting your keys. On the user end this allows them to add all keys and credentials in the same place.

In addition, I suggest you use subprocess.call instead of os.system. It is totally fine to use os.system but I believe subprocess.call is meant to replace the older os.system.
https://docs.python.org/2/library/subprocess.html

Finally, I think your exception handling is comprehensive and deals with a lot of potential problems elegantly. It is clear that you thought about the potential problems a user could encounter. However I think there are a few cases such as when the twitter account has no media where it might get stuck telling the user to try again. Maybe you can specify that the account has no media and recommend the user tries another twitter handle.

I hope that provided you with helpful feedback on how to improve your project.

Great work!
Maha

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.