• Learn
    • Courses
    • Career Tracks
    • Projects
    • Upcoming Courses
  • Certificates
    • Career Track Certificate
    • Course Certificate
  • Resources
    • All Resources
    • Course Notes
    • Templates
    • Infographics
    • Career Guides
    • Practice Exams
    • Blog
    • Reviews
    • Success Stories
    • Flashcards
    • Calculators
    • Interview Simulator
  • Pricing
  • Corporate Training
  • Login
  • Sign Up
Log In Sign Up
Follow this topic
Share
Kaushik Nandan Saha
Posted on:

11 Nov 2022

1

Doesn't show the status code 400 anymore

in Web Scraping and API Fundamentals in Python / Additional API functionalities

# Just a reference for others
invalid_url_2 = "https://api.exchangerate.host" + "/2019-14-01"
response = requests.get(invalid_url_2)
response
# this date also works. counting the month after 2019

data = response.json()
print(json.dumps(data, indent = 3))
# this shows the data for the date '2020-02-01'

0 answers ( 0 marked as helpful)

Submit an answer

GET

World-Class

Data Science

Courses

Learn with instructors from:

4.9/5

related questions

Francisco Riaño
1
8
Historical_url reques does not show up
Edgar Iván Jiménez Ramírez
4
4
I've found some API's that doesn't require authorization to use
Soad Afify
0
4
Resolved: The mentioned link is not working anymore
Murad
0
2
Texts are not visible.It doesn't shows assignment properly. Texts are mingled
Tasneem Hosaam
0
2
code in [59] not working
dinesh raja
0
2
Resolved: I got the error while run the following code a['href'] and a['class']
Asma HATIRA
1
2
Original link doesn't work, here's an alternate one
CHUN HSIEN TSENG
0
2
Don't see any javascript with code : print(soup.text)
Ahmed Hassan youssef
0
0
small modification on code
Talha Rauf
0
0
Proxy Issues To Get Access, or to attain 200 status code.
Daniel Greene
2
0
Web Scraping and API Fundamentals is outdated and the code no longer works.

All the Data Science Courses You Need

About

  • About Us
  • Meet the Instructors
  • Become an Instructor
  • Contact Us
  • Pricing

Learn

  • Courses
  • Career Tracks
  • Career Certificate
  • Course Certificate

Resources

  • Course Notes
  • Templates
  • Career Guides
  • Practice Exams
  • Calculators
  • Flashcards
  • Blog

Platform

  • Success stories
  • Q&A Hub
  • Help Center
  • Verify Certificate

Business

  • Corporate Training
  • Team Plan
  • Live Training

Business

  • Corporate Training
  • Team Plan
  • Live Training
© 2025 365 Data Science. All Rights Reserved.
Sitemap Terms of Use Privacy Policy Cookies