Skip to content

Instantly share code, notes, and snippets.

View Karamu98's full-sized avatar

Callum Karamu98

View GitHub Profile
@Karamu98
Karamu98 / SimpleDataExtractor.py
Last active April 26, 2019 17:14
A simple tool to allow you to parse a file for data between two tags.
# This is a simple extractor tool, it will grab the data between two tags you define etc...
# ["This is my data right here"]: Start tag = "is ", End tag = " right". Output = "my data"
# To be noted, this will only work if the data you want is on seperate lines
fileLocation = input("File Location: ")
outputLocation = input("Output Location: ")
startTag = input("Start Tag: ")
endTag = input("End Tag: ")
def main():