I am new to python and i don't know many things.I want to parse an html page,modify it and show it in my own page.I try use beautifulsoup in order to parse html but some errors are generated.I searched on the web but i don't know any specific way to do this.Can anyone help me?
-
1Give the code you have and the errors you get, and somebody may be able to help you. Not everybody here is a mindreader.Blair– Blair2011-04-15 10:45:49 +00:00Commented Apr 15, 2011 at 10:45
-
this is the problem.i have tried different codes i have found on the net but doesn't satissfy me.If anyone can provide me with a useful link or code i would be pleased.akageek– akageek2011-04-15 10:47:39 +00:00Commented Apr 15, 2011 at 10:47
-
1Dude, either you provide reasonable information and error messages or just don't ask here. BeautifulSoup is the perfect choice. Unless you provide information there is nothing we can douser2665694– user26656942011-04-15 10:49:33 +00:00Commented Apr 15, 2011 at 10:49
-
i don't have a specific code.i ask if someone can give me any link or code on how retrieving content from html page,modifying it and extract the content on my page.that's all.:)akageek– akageek2011-04-15 10:52:50 +00:00Commented Apr 15, 2011 at 10:52
Add a comment
|
2 Answers
you can see an example here
Besides two more discussion in this site:How to tell BeautifulSoup to extract the content of a specific tag as text? and Using Beautiful Soup Python module to replace tags with plain text
But I think it may be a better idea to write your own code and post your specific question here. Or at least you should use search engine first.
Good luck.