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
object blacklist extends App { | |
val blacklist = List(2,4,6,8,10) | |
for( id <- 1 to 10) { // for release in doc.getElementsByTagName("press_release"): | |
var blacklistedid = 0; // blacklistedid = "" | |
var bid = 0; | |
for (bid <- blacklist) { // for line in f: | |
blacklistedid = bid // blacklistedid = line.replace("\n","") | |
if (blacklistedid != id) { // if blacklistedid != release.getAttribute("id"): | |
blacklistedid = 0 // blacklistedid = "" |