Git Product home page Git Product logo

shopstyle_cc's Introduction

ShopStyle (Ebates) Coding Challenge

Solved using Python v3.5.3

Run program via command line with: python3 hd_counter.py

Problem:

Exercise: Using any language of your choice write a script that does the following:
Call http://api.viki.io/v4/videos.json?app=100250a&per_page=10&page=1

To go to next page of response you have to increment the page number in the above url. As long as the "more" field returns true, you have more data available.

The response is a JSON object which has a response key which is an array of more JSON objects. Each of them has a key called flags and within flags there is a key called hd.

Print out how many response objects have flags:hd set to true and how many have hd set to false.

Finally, please check in your code onto GitHub and share the link.

shopstyle_cc's People

Contributors

stanleyisyoung avatar

Watchers

James Cloos avatar  avatar

shopstyle_cc's Issues

Issues running

Hi Stanley,

Running into this when trying to run.. Anything I need to do to setup your project?

ngoncalves$ python3 hd_counter.py
Traceback (most recent call last):
File "hd_counter.py", line 10, in <module>
from password import secret
ImportError: No module named 'password'

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.