Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: A file for every person of a list
Post: RE: A file for every person of a list

Yes, you are right, I lost a line, of course I need it. I changed something to excludedNames and I lost a line. I am trying to find it. It is PeterAderson.txt, I corrected it
Emmanouil General Coding Help 3 2,315 Aug-28-2019, 06:47 PM
    Thread: A file for every person of a list
Post: A file for every person of a list

Hello, I have the code below that finds a person(LookFor=) from a dialogue file and creates for him a new file with his name and the words he have said. Is it possible to automate this and create a fi...
Emmanouil General Coding Help 3 2,315 Aug-28-2019, 04:15 PM
    Thread: Extracting data from multiple txt files
Post: RE: Extracting data from multiple txt files

Yes there are two more, but I think it doesn't make a difference because in the real file there are more than 200. This is why I think the solution is a bit complicated, how do I check all of them eve...
Emmanouil General Coding Help 7 5,142 Aug-25-2019, 10:24 PM
    Thread: Extracting data from multiple txt files
Post: RE: Extracting data from multiple txt files

Thank you for the answer, actually it is a bit more complicated than I expected because there are more than 200 persons in the files and there is first and last name and more than one lines for everyo...
Emmanouil General Coding Help 7 5,142 Aug-24-2019, 09:38 PM
    Thread: Extracting data from multiple txt files
Post: RE: Extracting data from multiple txt files

ok, thank you
Emmanouil General Coding Help 7 5,142 Aug-23-2019, 10:02 PM
    Thread: Extracting data from multiple txt files
Post: Extracting data from multiple txt files

Hello, is there any way to extract certain lines from multiple txt files that contain dialogues? I need to extract lines based on person's name, i.e. Rich’s lines Rich: I'm going to attend a concer...
Emmanouil General Coding Help 7 5,142 Aug-23-2019, 01:55 PM
    Thread: Outputing the results of search machine
Post: Outputing the results of search machine

Hello, is it possible to make a programme that takes as arguments, a key word i.e q=help and the start and finish pages of the results of a search machine i.e page=0 to page=3(4 result pages) and out...
Emmanouil Web Scraping & Web Development 4 5,066 Nov-06-2016, 11:22 AM
    Thread: Read input file and print hyperlinks
Post: RE: Read input file and print hyperlinks

I managed to make it work with this code from bs4 import BeautifulSoup file = raw_input('Type file path: ') with open(file) as f:  html = f.read() soup = BeautifulSoup(html, 'html.parser') for link i...
Emmanouil Web Scraping & Web Development 8 15,228 Oct-23-2016, 07:04 PM
    Thread: Read input file and print hyperlinks
Post: RE: Read input file and print hyperlinks

Hello and thank you for the precious help, with this code I managed to print all hyperlinks in separate lines , but still I can't find how to print also the text that follows every hyperlink. Could I...
Emmanouil Web Scraping & Web Development 8 15,228 Oct-23-2016, 05:08 PM
    Thread: Read input file and print hyperlinks
Post: RE: Read input file and print hyperlinks

Thank you for the reply, just i have difficulty to make it work for files that are stored in my computer.
Emmanouil Web Scraping & Web Development 8 15,228 Oct-23-2016, 02:33 PM
    Thread: Read input file and print hyperlinks
Post: Read input file and print hyperlinks

Hello everybody, sorry for my last post it does not show the picture, Edit admin: No problem,just find "Insert Python tag" button. I am new in python and i am trying to make a program that prompts fo...
Emmanouil Web Scraping & Web Development 8 15,228 Oct-22-2016, 11:07 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020