import metakit links_file = open('c:\\python21\\RBRanch\\links\\links.it') links_business_file = open('c:\\python21\\RBRanch\\links\\links_business.it') links_events_file = open('c:\\python21\\RBRanch\\links\\links_events.it') links_gov_file = open('c:\\python21\\RBRanch\\links\\links_gov.it') links_nature_file = open('c:\\python21\\RBRanch\\links\\links_nature.it') links_news_file = open('c:\\python21\\RBRanch\\links\\links_news.it') links_strange_file = open('c:\\python21\\RBRanch\\links\\links_strangness.it') story_file = open('c:\\python21\\RBRanch\\news\\news_scrap.html') story_business_file = open('c:\\python21\\RBRanch\\news\\news_scrap_business.html') story_events_file = open('c:\\python21\\RBRanch\\news\\news_scrap_events.html') story_gov_file = open('c:\\python21\\RBRanch\\news\\news_scrap_gov.html') story_nature_file = open('c:\\python21\\RBRanch\\news\\news_scrap_nature.html') story_news_file = open('c:\\python21\\RBRanch\\news\\news_scrap_news.html') story_strange_file = open('c:\\python21\\RBRanch\\news\\news_scrap_strangness.html') RB_database = metakit.storage("rbranch.mk",1) RB_view_news = RB_database.getas("news[story:S]") RB_view_news_links = RB_database.getas("news_links[links:S]") RB_view_events = RB_database.getas("events[story:S]") RB_view_events_links = RB_database.getas("events_links[links:S]") RB_view_nature = RB_database.getas("nature[story:S]") RB_view_nature_links = RB_database.getas("nature_links[links:S]") RB_view_business = RB_database.getas("business[story:S]") RB_view_business_links = RB_database.getas("business_links[links:S]") RB_view_gov = RB_database.getas("gov[story:S]") RB_view_gov_links = RB_database.getas("gov_links[links:S]") RB_view_strange = RB_database.getas("strange[story:S]") RB_view_strange_links = RB_database.getas("strange_links[links:S]") RB_view_main = RB_database.getas("main[story:S]") RB_view_main_links = RB_database.getas("main_links[links:S]") tom3 = '' tom = links_news_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_news_links.append(links = tom3) tom3 = '' tom2 = story_news_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_news.append(story = tom3) tom3 = '' tom = links_nature_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_nature_links.append(links = tom3) tom3 = '' tom2 = story_nature_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_nature.append(story = tom3) tom3 = '' tom = links_business_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_business_links.append(links = tom3) tom3 = '' tom2 = story_business_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_business.append(story = tom3) tom3 = '' tom = links_events_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_events_links.append(links = tom3) tom3 = '' tom2 = story_events_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_events.append(story= tom3) tom3 = '' tom = links_gov_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_gov_links.append(links= tom3) tom3 = '' tom2 = story_gov_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_gov.append(story = tom3) tom3 = '' tom = links_strange_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_strange_links.append(links = tom3) tom3 = '' tom2 = story_strange_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_strange.append(story = tom3) tom3 = '' tom = links_file.read() for i in tom: if ord(i) <> 13: tom3 = tom3 + i RB_view_main_links.append(links = tom3) tom3 = '' tom2 = story_file.read() for i in tom2: if ord(i) <> 13: tom3 = tom3 + i RB_view_main.append(story = tom3) RB_database.commit() del RB_view_main_links del RB_view_main del RB_view_strange_links del RB_view_strange del RB_view_gov_links del RB_view_gov del RB_view_business_links del RB_view_business del RB_view_nature_links del RB_view_nature del RB_view_events_links del RB_view_events del RB_view_news_links del RB_view_news del RB_database del links_strange_file del links_news_file del links_nature_file del links_gov_file del links_events_file del links_business_file del links_file del story_strange_file del story_news_file del story_nature_file del story_gov_file del story_events_file del story_business_file del story_file