4.2. Importing Datasets through Kaggle API

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 56

  • @Siddhardhan
    @Siddhardhan  3 года назад +19

    Hi everyone! I got a few mails from viewers that they are getting "403-Forbidden Error" if they try to import the dataset from kaggle through API. So, the request is forbidden because of not verifying your kaggle account. Follow these steps. Your issue will be resolved:
    STEP 1: Make sure you are using the same mail id for your kaggle account as well as for your google colaboratory.
    STEP 2: In the top right corner, you will see your profile image in your kaggle. Click it. Then go to "Account". In account, if you scroll down, you will find 2 options as "Create new API Token" & "Expire API token". Click "Expire API token".
    STEP 3: Now, go back to LANL earthquake competition. You will find an option called "Late Submission". Click that. You will be asked to verify your Phone number. Verify your phone number there.
    STEP 4: Once you have verified your phone number, come back to Lanl earthquake prediction competition. Again click "Late Submission". You will be asked to "understand the rules and Join the competition". Click that.
    STEP 5: Now, again go to your account and "Create new API Token". "kaggle.json" file will be downloaded.
    Then follow the steps mentioned in the video. This will solve the "403-Forbidden error". Thanks!

    • @chiennguyenngoc2832
      @chiennguyenngoc2832 3 года назад +1

      Thank you , I solved this

    • @PAVANSIDEAS
      @PAVANSIDEAS 4 месяца назад

      Hi bro the datasets are directly downloading from the kaggle then y should we use these API 's to import???..

    • @IAnonymous-ne6fq
      @IAnonymous-ne6fq 3 месяца назад

      How to use in vscode?

  • @cse-a-001puspayondasgupta7
    @cse-a-001puspayondasgupta7 3 года назад +1

    resolved the forbidden problem...thnaks sir

  • @sachinvithubone4278
    @sachinvithubone4278 3 года назад +3

    It's easy to pull data from kaggle. Thanks

  • @sagarchougule5676
    @sagarchougule5676 3 месяца назад +1

    Hi Sir, When Configuring the path Kaggle.json then it gives " cp: cannot create regular file '/root/.kaggle/': Not a directory
    chmod: cannot access '/root/.kaggle/kaggle.json': No such file or directory" this error message what I do

  • @rudrakshupdhyay6599
    @rudrakshupdhyay6599 3 месяца назад +2

    i am not getting the train.csv.zip file after running the api

  • @alimibrahem8120
    @alimibrahem8120 10 месяцев назад

    What if this dataset were to be updated later? Can we create a schedule to upload this dataset every month, for instance?

  • @AnushkaSingh-v5b
    @AnushkaSingh-v5b 2 месяца назад

    i am trying to import the train dataset after un zipping it, to do further analysis practices, but 'Your session crashed after using all available RAM' this error keeps on occuring, can u tell how to fix this

  • @PAVANSIDEAS
    @PAVANSIDEAS 4 месяца назад

    Hi 👋 bro the datasets are directly downloading from the kaggle then y should we use these API 's to import???..

  • @bendivanitha7211
    @bendivanitha7211 2 года назад +1

    Sir say how we can merge data half from kaggle and other half from external sources through api. Plz

  • @madhumithasanyal4628
    @madhumithasanyal4628 7 месяцев назад

    Hi sir, could u please post a video on how to upload the datasets in the Google colab permanently..

  • @vinaynaik953
    @vinaynaik953 3 года назад +1

    It help a lot thanks you very much

  • @sachinlakshitha7616
    @sachinlakshitha7616 Год назад +4

    !mkdir -p ~/.kaggle
    !cp kaggle.json ~/.kaggle/
    !chmod 600 ~/.kaggle/kaggle.json
    output
    cp: cannot stat 'kaggle.json': No such file or directory
    chmod: cannot access '/root/.kaggle/kaggle.json': No such file or directory

  • @raushanpathak2748
    @raushanpathak2748 2 года назад +1

    Hi Sir: I got 403-Forbidden error during API to fetch the dataset from Kaggle

  • @yeswillcode
    @yeswillcode Год назад

    how to pull kaggle data API in Jupyter Notebook, I mean in the same way, how you did it for Colab can you do it jupyter notebook. Initially, I tried the same steps for Jupyter Notebook, but it didn't work.

  • @nanflo-dream
    @nanflo-dream 3 года назад +2

    hi sir Iam facing this problem:IOError: Could not find kaggle.json. Make sure it's located in /root/.kaggle. Or use the environment method. can you help me please I already sent you message

    • @Siddhardhan
      @Siddhardhan  3 года назад +1

      Hi! Have you downloaded the json file and uploaded in Colab?

    • @nanflo-dream
      @nanflo-dream 3 года назад

      @@Siddhardhan yeah I sent you the screenshot on your mail

    • @Siddhardhan
      @Siddhardhan  3 года назад

      @@nanflo-dream ok. I'll check.

    • @nanflo-dream
      @nanflo-dream 3 года назад

      @@Siddhardhan thanks

  • @alizaibkhan2348
    @alizaibkhan2348 3 года назад

    how do i write this api configure code for jupyter notebook when kaggle.json is save in other directory

  • @swagatapal2275
    @swagatapal2275 3 года назад +1

    sir , 9:58 minute, when i put the link in collaboratary--it shows an error ...."Warning: Looks like you're using an outdated API Version, please consider updating (server 1.5.12 / client 1.5.4)
    403 - Forbidden" can u tell me why this type of error shows ??.. sir i have done the following steps which you have mentioned in description ...bt now it shows "401 - Unauthorized"..plz solve my problem ...

    • @Siddhardhan
      @Siddhardhan  3 года назад

      I replied to your mail

    • @thomasib4573
      @thomasib4573 Год назад

      I am also getting the same error.What can I do to resolve it.

  • @vetrij8630
    @vetrij8630 3 года назад +2

    Warning: Your Kaggle API key is readable by other users on this system! To fix this, you can run 'chmod 600 /content/kaggle.json'
    Warning: Looks like you're using an outdated API Version, please consider updating (server 1.5.12 / client 1.5.4)
    403 - Forbidden
    i got this problem help me

    • @Siddhardhan
      @Siddhardhan  3 года назад +1

      hi! I saw your mail. I replied to it. kindly check.

  • @hungpham1792
    @hungpham1792 2 года назад

    Hello Sir Siddhardhan, it shows me error : " 'chmod' is not recognized as an internal or external command,
    operable program or batch file."

  • @lokeshb4683
    @lokeshb4683 2 года назад

    i just createdd the kaggle account.
    But now i am getting the late submission in earthquake prediction.
    Could u resolve this?

    • @Siddhardhan
      @Siddhardhan  2 года назад

      no. that competition was conducted long back by the people who created it. We can't do anything about it. you can still get the dataset.

  • @yogeshwariyogi3741
    @yogeshwariyogi3741 2 года назад

    Hello sir.. It shows me cannot access '/root/.kaggle/kaggle.json':No such file or directory,..... How to fix this error sir?

    • @sachinsbabar2231
      @sachinsbabar2231 8 месяцев назад

      import kaggle.json as explained in the video, then mentioned syntax will work

  • @rudranshbhardwaj2547
    @rudranshbhardwaj2547 2 года назад

    brother i am facing problem -- when i paste API link in google colab then it give output as---
    403 - Forbidden

    • @Siddhardhan
      @Siddhardhan  2 года назад

      Hi! Please refer the pinned comment.

  • @Tony-vo9ok
    @Tony-vo9ok 2 месяца назад

    awesome

  • @vikashkumargupta4792
    @vikashkumargupta4792 2 года назад

    Hello bro i am getting warning look like you are using an outdated API version please consider updating (server 1.5.12 / client 1.5.4) forbidden .
    I tried your way to solve it suggestee by you but it is not resolved can you please tell me what to do please as there is my ct so I have to cover these topics can you please reply fast

  • @namanjain8970
    @namanjain8970 3 года назад +1

    bro i am getting a problem in it.
    when i try for pd.read_csv it showing an error which is saying ram is not sufficient .
    are you too getting the same error ?

    • @Siddhardhan
      @Siddhardhan  3 года назад +1

      Hi! What is the size of your dataset?

    • @namanjain8970
      @namanjain8970 3 года назад

      @@Siddhardhan i am using same dataset as in video

    • @namanjain8970
      @namanjain8970 3 года назад

      may be that was 8 gb

    • @Siddhardhan
      @Siddhardhan  3 года назад

      Contact me in Telegram or linkedin... You can find the link in the description of the video

    • @namanjain8970
      @namanjain8970 3 года назад

      on train.csv 8.9 G has written

  • @jawehers
    @jawehers 2 года назад

    Any help please? I am stuck here
    Warning: Looks like you're using an outdated API Version, please consider updating (server 1.5.12 / client 1.5.4)
    403 - Forbidden

    • @Siddhardhan
      @Siddhardhan  2 года назад +1

      please refer the pinned comment

  • @hope...3464
    @hope...3464 8 месяцев назад +1

    i am getting a zip file when api fetch

  • @clemencejosephat8335
    @clemencejosephat8335 2 года назад +3

    Who else facing the phone number verification problem at the Kaggle website?

  • @smritibhattrai3118
    @smritibhattrai3118 3 года назад

    sir i'm getting error outdated api

  • @gsrinivasarao5427
    @gsrinivasarao5427 3 года назад

    hi brother I am getting like Warning: Looks like you're using an outdated API Version, please consider updating (server 1.5.12 / client 1.5.4)
    403 - Forbidden

    • @Siddhardhan
      @Siddhardhan  3 года назад

      hi! please send a mail mentioning your error with screenshot to siddhardhselvam2317@gmail.com