Commit 74a8ac0b authored by chalikaM's avatar chalikaM

update

parent 6ada7a29
......@@ -3,7 +3,7 @@ from scipy.io.wavfile import read
import numpy as np
import matplotlib.pyplot as plt
from pydub import AudioSegment
# from pydub import AudioSegment
import os
import glob
......
......@@ -57,11 +57,11 @@ for word in word_frequencies.keys():
keyWords.append(word)
print(keyWords)
for token1 in keyWords:
for token2 in topicWords:
print("similarity", token1.similarity(token2))
Total_similarity = Total_similarity + token1.similarity(token2)
#
# for token1 in keyWords:
# for token2 in topicWords:
# print("similarity", token1.similarity(token2))
# Total_similarity = Total_similarity + token1.similarity(token2)
......
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://wikipedia.com')
searchbox = driver.find_element_by_xpath('//*[@id="searchInput"]')
searchbox.send_keys(['cricket'])
searchButton = driver.find_element_by_xpath('//*[@id="search-form"]/fieldset/button')
searchButton.click()
\ No newline at end of file
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('https://youtube.com')
searchbox = driver.find_element_by_xpath('//*[@id="search"]')
searchbox.send_keys(['speeches', 'Transportation'])
searchButton = driver.find_element_by_xpath('//*[@id="search-icon-legacy"]')
searchButton.click()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment