Fetching Data From an API | Day 17 | 100 Days of Machine Learning
ฝัง
- เผยแพร่เมื่อ 4 ก.ค. 2024
- Getting complete and high-performance data is not always the case in Machine Learning. While working on any real-world problem statement or trying to build any sort of project as Machine Learning Practioner you need the data. To accomplish the need for data most of the time, it is required to fetch data from API and if the website does not provide API, then the only option left is Web Scraping.
In this tutorial, we are going to learn how you can use API, extract data and save it in the form of a data frame. Fetching Data from an API involves accessing and retrieving structured data from web services, offering a convenient way to obtain real-time or specific information.
Code used: github.com/campusx-official/1...
TMDB API : developers.themoviedb.org/
RapidAPI : rapidapi.com/collection/list-...
JSON Viewer: jsonviewer.stack.hu/
============================
Do you want to learn from me?
Check my affordable mentorship program at : learnwith.campusx.in/s/store
============================
📱 Grow with us:
CampusX' LinkedIn: / campusx-official
CampusX on Instagram for daily tips: / campusx.official
My LinkedIn: / nitish-singh-03412789
Discord: / discord
Instagram: / campusx.official
E-mail us at support@campusx.in
⌚Time Stamps⌚
00:00 - Intro
00:30 - What is an API?
05:45 - Getting TMDB data with API
12:10 - Code Demo
20:33 - Uploading Dataset on Kaggle
It's really required strong Hindi content for data science, thank you brother
Immensely grateful for what you're providing. Best content bar none!!
by far the bestttt video i have seen on Web Scraping with the help of API's. You should definitely make a playlist covering Web Scraping.
Amazing explanation and thanks sir for giving this type quality content at free of cost.
Kudos, Nitish ! Your teaching style is phenomenal, and I've learned so much from your Python and Machine Learning tutorials. As I delve deeper into my passion for data engineering, I can't help but wish for a mentor like you in this field. Your guidance would be invaluable. Any plans to explore data engineering topics?
Uplifting session, I have seen this kind of channel very simple and easy explanation Thanx a lot
u are doing immensely great work
keep it up
very nice teaching methodology
an ur knowledge is tremendous on the subject
With all due respect, only few people share their knowledge and in those few spread their knowledge on air. U one in those. Plz keep going to make century.
Can u plz zoom little jupyter page in next video.
Thx
i have reached till day 17, and i really appreciate your work, please keep up the good work. I am an experience DS, but still your videos helped me a lot. Thanks bro.
so what happened?
got a job?
Loving your teaching style ...
Its really good and to the point for DA and BI experts
Thank you Sir for this, I had never generated any data. Also the information which you gave on boosting Kaggle profile. Thank you
Thanks man , wonderful tutorial
khattam..finnish... such a superb video. hats off to you man !
awesome video! thank you so much for your efforts .
Bundle of thanks, you helped us lot, keep it up
Thankyou So much Sir for your Contribution 😃
Thanks for sharing this quality content.😀
I am a fan of you sir, Thanks for sharing your knowledge ! With every passing video, I m gaining a little more confidence and knowledge
I am feeling the same very unconfident but after watching his videos gaining little confidence day by day thank you for the amazing and knowledgeable videos.
best machine learning playlist in hindi
Ek number bhai
ap nay dil jeet liya
bht shukriya apka ap bht achy sy sub kch bta rhy ho 😍
GOLD! Thanks a lot
You are a savior!! Thanks a lot!
Saraswati maa ko actual tribute to aapne diy hain bro .
Naman to your dillegence.
Hi..i really appreciate you..And love to listen and watching videos..many things I learnt from you.. just say..great great..bless u.thank you very much..🎉
hello, actually i was trying running this code but it is giving me the error that pandas do not support apped function use concat oinstead , I am not getting how to remove that problem. Would you please help me if you have run this code
Nice video sir, to understand how to use the API's in Python
You are gem Sir!
Thank you very much sir
Awesome🔥
Thank you sir😁🙌🙌
awesome content
thanks a lot sir !😊
Thanks Sir!!
Respect Man ❤
Well appreciated. Love from pakistan nitish sir.
finished watching again for better praactice
you are Awesome 😎😎😎😎
u r awesome..
#thankyou_note
First of all thankyou sir for such an informative video. I am a person from a non-CS background, and so far, the series has been very much interesting.
#RapidAPI_problem
The issue is that I tried pulling some data from RapidAPI, but most of it has 100-200 rows. Or may be I need to explore more. It is a common issue for most of us recent learners, on how to fetch data from Rapid API. If you guide us a bit over it. That would be highly beneficial for us noobs.
#My_efforts
Though, I did from a website called AlphaVantage, and most of these sources, having APIs provide code too. For example, I was able to get data of IBM stock for a month. Is that all right? Any other suggestions for this?
You are the best teacher in my whole programming career love you sir for this valuable information
Ya 🥺
Nice video
found it sir, thank you sir.
finished watching
I am facing some problems with extracting links from an excel sheet to make a data frame. I have done so much research but have not done it yet. Please do help me.
Thank you so much in advance.
too good!!!
sir you are gem, thanks for knowledge sharing😊😊😊🙏🙏🙏🙏
Sir, why is DSA important for machine learning because I am thinking of learning it, but that will take me a lot of time. Should I learn DSA or not?
the jupyter cell cannot run when i am giving it the requests.get('copied url form api correctly')
it shows * in respective cell number
please help
thx
Sir the thing wo api link show hi nhi karra hai, kuch or hi api aara h
sir, i couldn't lfind movie section that is shown in your screen. 06:18,
and not getting api option, so let me use your api. i tried with 2 google accounts.
Sir! Why don't we convert SQL and API fetched data to csv or json file and work with it easily?
sir. in getting error that 'AttributeError: 'DataFrame' object has no attribute 'append'' but its working using concat method....
anyone facing this issue can try this
I need the pull data from ERP to google sheet using python code then how will to do
Hello sir.. I m not able to get the JSON file, even the option like u get to submit the API key.. just a Try it box is generated and in that my key has already pasted..result is i m getting 401 error
can u help?
Sir how do API from trading economics website I need crude oil prices dataset please sir reply🙏??
Sir ic ma movies k link kisyee add kryee gayee????
link of tmdb api in which we have to select movies and then top rated movies sir i'm not able to find top rated movies can any tell me
I am getting KeyError 'results' when i am running loop
need help, i got API keys but me try kar raha hu par mujhe film rating wala api link hi nahi mila raha please help
can anybody tell me how to fetch from rapid api
my kind of binge watching
🔥🔥
Hello sir, TMDB website is not responding. So can you suggest any other website.
sir, can you make a video on how to use rapid API cause we are not getting API key.
Hello, see the next video of this playlist, where you are not able to get data from API or don't have API key, still you can access their data using web scraping.
@faisalhussain5007 can you please provide me a link
How to getdata using rapidapi???
for each url we are hitting different APIs right?.So each time do we need seperate API key?
No. Same api key will work
day1:date:9/1/2024
Sir I am getting key error:’results’. Plz help
why only 14 rows data is fetching ever time i hit api anyone have solution
Sir amazing..amazing
Right now I make my first data set from API (rickandmortyapi ) ...
I generate csv file too sir..
But i did all the thing on googlecolab...so i dont know where this csv file saved... I am stuff..sir
I am not CS student but I want to make my carrer in DS.. So..
In your google drive
is it free?
sir append method did not work. on using AI suggested to use concat(df, temp) and it worked.
thank you.
and how to export this final data, into a file for sharing/uploading?
ok done to csv using ( df.to_csv('data.csv') )
Sir ya api key mujy ni day raha ha ma log b howa layqen pir b ni day raha kia karo ma es ka
Done
done
i am facing this error?
AttributeError: 'DataFrame' object has no attribute 'append'
If you got the solution pls tell me
sir please tell how to solve this 404 error
How to find dynamically range of for loop?
using len() function
Sir I am getting Key Error - 'results'. When I checked there is some issue from page 506 to 536 i am unable to download data, I have got the data before 506 page. But still around 600 movies data is missing. What needs to be done
I am also getting same error. If yours resolve plz help me.
I am also getting the same error, were you able to solve this?
i tried but rapidapi said i did not subscribe to their API
GOD
o btw it worked
it took some time
Sir, Rapid Api pe endpoint maang rahe hai. jo bhi endpoint denge vahi bas result fetch hota hai. to pure data ko fetch kaise kare ???
Did you found the solution ?
@@arpitajana947 no
Like ATM all bank use the api
hello, actually i was trying running this code but it is giving me the error that pandas do not support apped function use concat instead , I am not getting how to remove that problem. Would you please help me if you have run this code
Man you're beautiful. Awesome content
I didn’t get api key
It is the key basically for the authentication which is considered by the providing website
6:04
finished coding
Sir Api key invalid bta ra h, jbki hme naya account bnane k bad hi mili h key
same problem
@@shashwatraj3842 api key shi se daalo ni btayga
@@shashwatraj3842 watch closely not even a single (.) is allowed with your api key
Code execute ni hua last m sir, in the upcoming versions append function will be removed so it is asking to use pandas. concat instead.
Same happened with me if you found the solution please share
@@gauravtricks8267okei buddy, df =pd.concat([df, temp_df ], ignore_index=True) .
@@anshulsharma7080 thank u brother it worked very well
@@anshulsharma7080 thank you brother..!
api create karne me issue aa raha h
mjhy bhii
ye website to verification krny pr b verification mang rha bht bkws site ye movie wali .
26_6_2024
anyone got api?
can we do this for power bi
Thank you sir
Man you're beautiful. Awesome content