Skip to content

Kaputte mediacredit tags #26

Description

@phibo23

gefunden mit

def file = new File("/Users/Iam/Desktop/studentenpack.wordpress.2016-02-20.xml")
def slurper = new XmlSlurper()

def content = slurper.parse(file)

def matches = content.'**'.findAll {item ->
    def text = item.encoded.text()
    text.contains("[media-credit") && text.contains("[/caption]") && !text.contains("[/media-credit")
}

matches.each {
    println "- [ ] " + it.link.text()
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions