Hey Ranjith,
For example bookmark apps in django please have a look at follwing urls:
If you want to extract text and title etc. for an url then you can use http://viewtext.org/help/api for this. I have embedded an interactive code snippet below.
I used python-requests(http://docs.python-requests.org/en/latest/) and html2text (https://github.com/aaronsw/html2text) for this.
In [1]: import requests In [2]: from html2text import html2text In [3]: r = requests.get("http://viewtext.org/api/text?url=https://docs.djangoproject.com/en/1.4/topics/testing/&format=json&rl=false") In [4]: data = r.json() In [5]: print html2text(data["title"]) Testing Django applications | Django documentation | Django In [6]: print html2text(data["content"][:400]) Automated testing is an extremely useful bug-killing tool for the modern Web developer. You can use a collection of tests - a **test suite** - to solve, or avoid, a number of problems: Testing a Web application is a complex task, because a Web application is made of several layers of logic - from HTTP-level request handling, to form validation and proce In [7]:
--
Pankaj Singh
http://about.me/psjinx
On Mon, Jan 28, 2013 at 8:21 AM, Ranjith Kumar <ranjithtenz@gmail.com> wrote:
> Hello All,
> I wanted to build bookmarking web application using django, in this app user
> can not only bookmark the site also they scrape few datas from the
> bookmarked page.
>
> Looking for good python/django tools which can help me achieve this aim
>
> Thank you!
>
> --
> Cheers,
> Ranjith Kumar K,
> Chennai.
>
> http://ranjithtenz.wordpress.com
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscribe@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment