{"cells":[{"cell_type":"markdown","source":["# nepberta"],"metadata":{"id":"SaV7GpYo1h_2"}},{"cell_type":"code","execution_count":null,"metadata":{"colab":{"base_uri":"https://localhost:8080/"},"executionInfo":{"elapsed":502,"status":"ok","timestamp":1731307389266,"user":{"displayName":"Aananda Giri","userId":"10248715758347187876"},"user_tz":-345},"id":"2VWdmLpsq-ri","outputId":"99fc7384-a201-4f8c-e817-41f3a6a865e2"},"outputs":[{"output_type":"stream","name":"stdout","text":["/content/drive/MyDrive/Research/datasets/hf_datasets\n"]}],"source":["%cd /content/drive/MyDrive/Research/datasets/hf_datasets"]},{"cell_type":"code","execution_count":null,"metadata":{"id":"cn0UpSL8q0QZ"},"outputs":[],"source":["# Probably should `clean_data(new_crawled_data)` before merging `new_crawled_data.csv` and previous`cleaned_data.csv`\n","\n","from bs4 import BeautifulSoup\n","import csv\n","import json\n","import re\n","import string\n","import pandas as pd\n","\n","from drive.MyDrive.Research.datasets.scrapy_engine.code.load_data import load_data\n","class CleanData:\n"," def __init__(self):\n"," pass\n"," # return text\n"," # Example of removing HTML tags\n"," def clean_html(self, text):\n"," '''\n"," # HTML Tag Removal:\n"," * removes html tags like: