Hello friends i am new on DaniWeb and new in Python...
I have a few problems so i need help...
I have a text document with a code from some web page, how can i extract some string between a two different strings in line and then that stings write in a new file after all that program must continue to search more strings in that same line...
i have 50 lines with 150 000 chr Ex: (',...3627s-/a<<*g12-5<d/ajqjh5i1/*//*,.,.,-,')
EX: " (a,b){var c=encodeURIComponent,d=["//www.google.com/gen_204?atyp=i&zx=",(new Da "
How can i extract just '204?atyp=i&zx'
My string is always between 'google.com/gen_' and '="' in this example so i need a help to write a code that open a file, read from it, extract exact string between two strings in a line write him in a new file and then continue to search in that line and rest of the lines in file...
And is it possible that my program can't see all 150 000 chr in one line on web page because when he write it on new file it has just 72 775 something like that in a single line...
So is it possible to write a program who open's a file, read it, input first string, input second string and write string between this two in a new file...
So if you can write any part of the code and I would be very grateful to you...
Thanks