Coder Social home page Coder Social logo

Comments (5)

joelubuntu avatar joelubuntu commented on July 26, 2024

facing same issues 😔

from newsapi-python.

FooBarAUT avatar FooBarAUT commented on July 26, 2024

yes can confirm, only response is {'status': 'ok', 'totalResults': 0, 'articles': []}, if you look into your account it gets counted in the usage report, so the request seems to somehow get lost on the way back?

from newsapi-python.

economy avatar economy commented on July 26, 2024

Same issue on our end

from newsapi-python.

mattlisiv avatar mattlisiv commented on July 26, 2024

Hi, it appears that the language parameter is no longer supported in the top headlines API. This is a new/breaking change introduced by the news API team. I would reach out to them directly. If they say this is intentional, I can remove the default 'en' parameter from the package.

from newsapi-python.

mattlisiv avatar mattlisiv commented on July 26, 2024

Apparently, NewsAPI changed their language codes and now expect 'en-US' to be the default. This has been updated to allow the 'en-US' country code in a recently published version 0.2.7 .

Please use now:

top_headlines = newsapi.get_top_headlines(language='en-US')

from newsapi-python.

Related Issues (20)

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.