title: type object not subscriptable - python
body: <pre><code> from newsapi.sources import Sources
   import json
   api_key ='*******************'
   s = Sources(API_KEY=api_key)
  </code></pre>
  
  <p>they input the category of news they want</p>
  
  <pre><code> wanted = input('&gt; ')
   source_list = s.get(category=wanted, language='en')
  
   index = 0
   sources = []
  </code></pre>
  
  <p>getting the sources
       for source in source_list["sources"]:</p>
  
  <pre><code>     data = json.dumps(source_list)
       data = json.loads(data)
  
       source = (data["sources"][index]["url"])
       sources.append(source)
       index += 1
  
  
   from newspaper import Article
  
   i = len(sources) - 1
  </code></pre>
  
  <p>looping through the source list and printing the articles
       for source in sources:</p>
  
  <pre><code>     url_ = sources[i]
  
       a = Article[url_]  
       print(a)
  
       i -= 1
  </code></pre>
  
  <p>getting error 'type' object is not subscriptable on the line <code>a = Article[url_]</code> have researched but still do not understand why in my case.</p>