I have a text file which contains list of urls which looks like as follows:
Here i only want to print epid=1760442729 while reading the text file.
I have tried:
result = []`
with open('deals.txt', 'r') as f:
for line in f:
if line.startswith('?epid='):
break
result.append(line)
print(result[0].split('epid='))
But i am not getting as expected result.
Any help or suggestions will be helpful for me. Thanks in advance