init

если это тест, давай его перенесем в tests.py

On Thu, Oct 9, 2014 at 11:04 AM, Krupin Dmitry <notifications@github.com>
wrote:

> In fbparse.py:
>
> > +def likes_shares_parse(page):
> > +    url = HOST + page + '/likes'
> > +    r = requests.get(url, headers=headers)
> > +    if not r.status_code == 200:
> > +        raise Exception("Page not found")
> > +
> > +    html = r.content
> > +    arr = likes_re.findall(html)
> > +    if not len(arr) == 2:
> > +        raise Exception("Parse error, or no likes on the page")
> > +
> > +    return {"likes": arr[0], "shares": arr[1]}
> > +
> > +
> > +
> > +if __name__ == "__main__":
>
> Ну это чтобы прямо из консоли тестировать
> python fbparse.py
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ramusus/django-facebook-pages-statistic/pull/1/files#r18631472>
> .
>



-- 
gtalk: *ramusus@gmail.com <ramusus@gmail.com>*
icq: 4543333
skype: ramusus