[BangPypers] BeautifulSoup in Jython required in Java faced Problem

keshava M goldkeshava.88 at gmail.com
Tue Oct 11 19:08:11 CEST 2011


how to create database and to establish connection or path between files to
database and webpage in python. what all d nessary softwares...........
plz help me.

On 11 October 2011 14:20, Anand Chitipothu <anandology at gmail.com> wrote:

> 2011/10/11 Subhodip Biswas <subhodipbiswas at gmail.com>:
> > Hi all,
> >
> > I wrote few codes in Jython for reading xmls. Everything was working
> > fine until one fine day my client asks for a java interoperability.
> > I dig up the internet and landed up here:
> >
> http://jythonpodcast.hostjava.net/jythonbook/en/1.0/JythonAndJavaIntegration.html
> > This is however is not the problem. The problem is I used
> > beautifulsoup because of b0rked XML responses. Considering that for
> > different request there will be different response which in turn(in
> > beautifulsoup) results in something like ns#:somename (where # is a
> > number and Some name is a node name). I will be lost with random
> > combinations every time a different response comes.
> >
> > One way of thinking is to generalize the beautifulsoup code(but will
> > face the problem above) and then use the Java Jython patching.
> > Another way is to use something else similar to Beautifulsoup (e.g.
> > JSoup maybe).
> >
> > Beautiful soup is powerful and I am helpless. Please help with your
> > thoughts and ideas.
>
> You can take the BeautifulSoup.py and compile it to .class file and
> put it in a jar. That should allow you to use it from Java with ease.
>
> Anand
> _______________________________________________
> BangPypers mailing list
> BangPypers at python.org
> http://mail.python.org/mailman/listinfo/bangpypers
>


More information about the BangPypers mailing list