Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Regex
Post: RE: Regex

Is this possible with python: 1. Search for static Text 2. If 1. found, search from this position for Text between XML-Tags with Regex and write it to file 3. See 1. from current position in file
yuyu Web Scraping & Web Development 6 3,153 Dec-15-2018, 11:11 PM
    Thread: Read XML-File
Post: RE: Read XML-File

Is it possible to use a regex instead of 'human' 'animal', because in real file are blocks with Tags like <Param-One-Block> and <Param-Two-Block>. Means a RegEx for One and Two in middle, ...
yuyu Web Scraping & Web Development 16 6,980 Dec-15-2018, 09:23 PM
    Thread: Read XML-File
Post: RE: Read XML-File

Thanks, but I was wondering me if there is a more generic way?
yuyu Web Scraping & Web Development 16 6,980 Dec-15-2018, 07:35 PM
    Thread: Read XML-File
Post: RE: Read XML-File

When I adapt and apply the last script for another big XML-File, then it's not coming over the firsts loop?
yuyu Web Scraping & Web Development 16 6,980 Dec-15-2018, 04:04 PM
    Thread: Read XML-File
Post: RE: Read XML-File

BeautifulSoup works fine for attached example, bt unfortunately not on a big XML with different grouped XML-Tags for Name, Age and Number which are the relevant text values. Is this somehow possible f...
yuyu Web Scraping & Web Development 16 6,980 Dec-15-2018, 01:18 PM
    Thread: Read XML-File
Post: RE: Read XML-File

Minidom works fine for printing names, but I cannot get all 3 attributes out of my inputfile with nested forloops, what might be the issue?
yuyu Web Scraping & Web Development 16 6,980 Dec-14-2018, 10:10 PM
    Thread: Read XML-File
Post: RE: Read XML-File

do you know a description, which is closer to the example?
yuyu Web Scraping & Web Development 16 6,980 Dec-13-2018, 10:00 PM
    Thread: Regex
Post: Regex

Hi, how can I read the inputfile with Regex and store it into outputfile with python? ## inputfile ## <Color>blue</Color> <Code>1</Code> <Color>red</Color> <Co...
yuyu Web Scraping & Web Development 6 3,153 Dec-13-2018, 08:57 PM
    Thread: Read XML-File
Post: RE: Read XML-File

Hello, I tried a little bit and found this: import xml.etree.ElementTree as ET tree = ET.parse('c:/data.xml') root = tree.getroot() But how can I sarch now for e.g. all Names and print them into a n...
yuyu Web Scraping & Web Development 16 6,980 Dec-13-2018, 05:47 PM
    Thread: Read XML-File
Post: Read XML-File

Hello Forum, I've got a XML-File with al lot of names, age and a number as follows: ## inputfile ## <Name>Tim</Name> <Age>23</Age> <Number>1234</Number> <Name&...
yuyu Web Scraping & Web Development 16 6,980 Dec-12-2018, 08:48 PM

User Panel Messages

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