Skip to content

YevhenDuma/Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#TASK

  1. Write an application, which will perform the following tasks.

Parse the HTML for the “Top Playstation 3 Games (By Metascore)” on Metacritic’s PS3 page:

http://www.metacritic.com/game/playstation-3.

  • Expose a method, which will return the parsed information as an array of JSON elements.

    E x a m p le output:

[

{

"title": "XCOM: Enemy Within",

“score”: 88

},

{

"title": "Assasin’s Creed IV: Black Flag",

“score”: 88

}

... etc ...

]

  1. Expose a REST API for retrieving top PS3 games.

There should be 2 exposed methods:

  • An HTTP “GET” request a “/games” returns all top PS3 games on metacritic page
  • An HTTP “GET” request at “/games/TITLE_OF_GAME_GOES_HERE” returns JSON for a specific game that matches the corresponding game title. For example, an HTTP GET at /games/Gran%20Turismo%206 should return an individual JSON object for Gran Turismo 6

Example output:

{

"title": "Gran Turismo 6",

“score”: 81

}

##Deliverables:

  1. Provide the source-code, which satisfies 1 and 2 described above.
  2. Provide “Readme” style documentation on how to run your code.
  3. Provide unittests to prove the correctness of your code.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages