1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to make HTML contnent with same tag in each line using Sed in python

Discussion in 'Python' started by flipmedia, Jan 19, 2016.

  1. flipmedia

    flipmedia New Member

    Joined:
    Mar 21, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Dear friends,

    I am looking in a an HTML file to modify for the purpose of easy parsing . I need to put each item of HTML after body to separate line. Means each tag content must come in one individual single line without split . Please advise How it can do with Sed...

    Waiting fast reply...

    Thanks Anes
     
  2. flipmedia

    flipmedia New Member

    Joined:
    Mar 21, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    Any way using Sed in HTML parsing is not a good method . So can choose Beautifulsoup (or any other HTML parser) for purpose ...

    Thanks
    Anes
     

Share This Page