Forum in maintenance, we will back soon 🙂
404 error - Build google api
Hi
Â
I was just trying to follow along with the video to build the google keyword search API but return page not found error? Has something changed or am i doing something wrong?
Â
Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI serv
er instead.
* Running on http://127.0.0.1:5000
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 668-945-949
127.0.0.1 - - [28/Apr/2024 07:17:45] "GET / HTTP/1.1" 404 -
127.0.0.1 - - [28/Apr/2024 07:17:53] "GET /shoes HTTP/1.1" 404 -
127.0.0.1 - - [28/Apr/2024 07:18:37] "GET /shoes HTTP/1.1" 404 -
127.0.0.1 - - [28/Apr/2024 07:18:37] "GET /favicon.ico HTTP/1.1" 404 -
127.0.0.1 - - [28/Apr/2024 07:18:53] "GET /build%20apis HTTP/1.1" 404 -
Â
ot Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Â
Thank you
Â
Tayo
can you please share the code ? is it my code?Â
@tayo-ojulari what routes did you define? The routes determine what should follow the 5000; for example http://127.0.0.1:5000/myroute. You can define a route for '/' which is typically called the index page so you avoid the not found error.
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack
@admin yes i used your code, see below:
Â
@tayo-ojulari so your route is /keywords with a query of "query". The URL you need is http://127.0.0.1:5000/keywords?query ="Whatever You Want To Search"
Regards,
Earnie Boyd, CEO
Seasoned Solutions Advisor LLC
Schedule 1-on-1 help
Join me on Slack