# Help for project

**URL:** <https://discuss.python.org/t/help-for-project/10422>\
**Category:** Python Help\
**Tags:** help\
**Created:** [August 31, 2021, 1:57pm UTC](https://discuss.python.org/t/help-for-project/10422 "2021-08-31T13:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eigengrau](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@Eigengrau](https://discuss.python.org/u/Eigengrau)\
**Post date:** [August 31, 2021, 1:57pm UTC](https://discuss.python.org/t/help-for-project/10422/1 "2021-08-31T13:57:42Z")

</div>

I’m working on this project for a course and I have to write some functions. The request of the first function is the following: Define a function, called `get_movies_from_tastedive` . It should take one input parameter, a string that is the name of a movie or music artist. The function should return the 5 TasteDive results that are associated with that string; be sure to only get movies, not other kinds of media. It will be a python dictionary with just one key, ‘Similar’.

The function actually works, and even the rest of the project (the uses it) is working fine. However, I get the error “Error: TypeError: list indices must be integers, not str”.

I have tried everything I can think of and for hours. Can you help me?

 ![Immagine 2021-08-31 155728](https://us1.discourse-cdn.com/flex002/uploads/python1/original/2X/a/a69a8e1fa08ffe2962b9ecf92637e1d788393482.png)

This is the print of res.text:  
{“Similar”: {“Info”: [{“Name”: “Black Panther”, “Type”: “movie”}], “Results”: [{“Name”: “Captain Marvel”, “Type”: “movie”}, {“Name”: “Avengers: Infinity War”, “Type”: “movie”}, {“Name”: “Ant-Man And The Wasp”, “Type”: “movie”}, {“Name”: “The Fate Of The Furious”, “Type”: “movie”}, {“Name”: “Deadpool 2”, “Type”: “movie”}]}}

The requests\_with\_caching.get is basically the same as request.get, it just looks if the data has been saved in the cache and, if it was, it takes it from there.

---

<div class="post-metadata">

**Author:** ![Eigengrau](https://avatars.discourse-cdn.com/v4/letter/e/e19b73/32.png) [@Eigengrau](https://discuss.python.org/u/Eigengrau)\
**Post date:** [August 31, 2021, 6:06pm UTC](https://discuss.python.org/t/help-for-project/10422/2 "2021-08-31T18:06:38Z")

</div>

SOLVED: the code was not wrong, simply the task is poorly written (in my opinion). You are supposed to return the entire information from the get basically.
