I am trying to download the Fakeddit dataset (multimodal) through colab notebook, but getting the following error when running !python image_downloader.py:
usage: image_downloader.py [-h] type image_downloader.py: error: the following arguments are required: type
The working directory is the same folder as where the .tsv files are saved (as following the official Fakeddit github link: https://github.com/entitize/Fakeddit).
The following is my code:
from google.colab import drive
drive.mount('/content/drive', force_remount= True)
import os
root_dir = "/content/drive/MyDrive/"
#choose the project folder
project_folder = "Fake_News_Detection/Fakeddit/Dataset/multimodal_only_samples"
#define a function to create and set the working directory
def create_and_set_working_directory(project_folder):
#check if the project folder exists. if not, make one.
if os.path.isdir(root_dir + project_folder) == False:
os.mkdir(root_dir + project_folder)
print(root_dir + project_folder + 'did not existed and was created.')
#change the OS path to project folder as working directory
os.chdir(root_dir + project_folder)
create_and_set_working_directory(project_folder)
!pwd
'/content/drive/MyDrive/Fake_News_Detection/Fakeddit/Dataset/multimodal_only_samples'
!python image_downloader.py
'usage: image_downloader.py [-h] type
image_downloader.py: error: the following arguments are required: type'