Kaynağa Gözat

some documentation

master
dziegler 11 yıl önce
ebeveyn
işleme
fc0583a443
2 değiştirilmiş dosya ile 35 ekleme ve 0 silme
  1. +17
    -0
      README
  2. +18
    -0
      excerpt_extractor.py

+ 17
- 0
README Dosyayı Görüntüle

@@ -0,0 +1,17 @@
This is a simple script to automatically extract excerpts from articles. It
requires BeautifulSoup.

Usage:
from excerpt_extractor import get_summary
url = "http://someurl.com/goes/here"
(title,description) = get_summary(url)

==========================================

Some examples, discussion, and comparison with the Facebook article extractor
are at http://blog.davidziegler.net/post/122176962/a-python-script-to-automatically-extract-excerpts-from

copyright: Copyright 2009 by David Ziegler
license: MIT License
website: http://github.com/dziegler/excerpt_extractor/tree/master


+ 18
- 0
excerpt_extractor.py Dosyayı Görüntüle

@@ -1,3 +1,21 @@
"""
This is a simple script to automatically extract excerpts from articles. It
requires BeautifulSoup.

Usage:
from excerpt_extractor import get_summary
url = "http://someurl.com/goes/here"
(title,description) = get_summary(url)

==========================================

Some examples, discussion, and comparison with the Facebook article extractor
are at http://blog.davidziegler.net/post/122176962/a-python-script-to-automatically-extract-excerpts-from

copyright: Copyright 2009 by David Ziegler
license: MIT License
website: http://github.com/dziegler/excerpt_extractor/tree/master
"""
from BeautifulSoup import *
import urllib2
import cookielib


Yükleniyor…
İptal
Kaydet