This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
import nltk | |
import csv | |
# 変数 | |
word_list = open('word-verified.csv','r') | |
csv = csv.reader(word_list) | |
file = open('word_merged.csv','w') | |
word = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python2.7 | |
# coding: utf-8 | |
# 辞書アプリにアクセスするためのパッケージ | |
from DictionaryServices import DCSGetTermRangeInString, DCSCopyTextDefinition | |
import csv | |
# 変数 | |
word_list = open('word-dot-eliminated.csv','r') | |
row = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import time | |
import pandas | |
import numpy | |
# 変数準備 | |
csv = pandas.read_csv('word.csv') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
from bs4 import BeautifulSoup | |
import nltk | |
import time | |
import pandas as pd | |
# 変数定義 | |
page = 2664 | |
symbols = ["'", '"', '`', '.', ',', '-', '!', '?', ':', ';', '(', ')'] | |
csv = open('word.csv','w') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
from selenium import webdriver | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
import time | |
import pandas | |
import numpy | |
# 変数準備 | |
url = "https://www.ted.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: UTF-8 | |
import urllib2 | |
from bs4 import BeautifulSoup | |
import time | |
# 変数準備 | |
url = "https://www.ted.com/talks?page=" | |
total_page = 74 | |
count =0 | |
file = open('ted-link.csv','w') |