<jupyter_start><jupyter_text>Full code<jupyter_code>lis=['Course','URL','University']
info=[]
info.append(lis)

from selenium import webdriver
import csv

chrome_options = webdriver.ChromeOptions()
chrome_options.add_argument('--no-sandbox')
driver = webdriver.Chrome("C:\\Users\<NAME>\Documents\My Work\PakkaIndia\chromedriver",chrome_options=chrome_options)

driver.get('https://catalog.registrar.ucla.edu/ucla-catalog18-19-271.html')
data1=driver.find_elements_by_class_name('main')
for i in range(2,len(data1)):
    c=data1[i].text
    url=data1[i].get_attribute('href')
    
    info.append([c,url,'University of California, Los Angeles'])
    print(c,url)
len(info)
with open('University_of_California,_Los_Angeles.csv','w',encoding="utf-8",newline="") as file:
    write=csv.writer(file)
    for row in info:
        write.writerow(row)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.15922107674684993, 'fraction_numerical': 0.014891179839633447, 'mean_word_length': 6.5344827586206895, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '418108', 'license': 'MIT', 'n_tokens_mistral': 332, 'n_tokens_neox': 308, 'n_words': 41, 'path': 'American_Universities/University_of_California,_Los_Angeles/University_of_California,_Los_Angeles.ipynb', 'repo_name': 'mohansah/Web_Scraping', 'size': '882'}