コード例 #1
0
ファイル: startup.py プロジェクト: nikhgarg/scholar.py
"""

import scholar2

query = scholar2.SearchScholarQuery()
query.set_phrase("what will 5g be")
query.set_author("andrews")

print query.get_url()

querier = scholar2.ScholarQuerier()
querier.send_query(query)

print querier.articles

scholar2.txt(querier)

article = querier.articles.pop()
print article
querier2 = scholar2.ScholarQuerier()
querier2.parse(querier2._get_http_response(article.__getitem__('url_citations')))

scholar2.txt(querier2)


print "finished"

#take a phrase/specific article
#(TODO) find sources cited by this article, recursively do that
#recursively (up to 10 citations per article, 100 total) find articles that cite these articles
コード例 #2
0
ファイル: views.py プロジェクト: abish125/test_front_end
def search_scholar(request):
    s=str(txt("innovation", "succi", 1))
    return render(request, 'polls/search_scholar', {'s':s})
コード例 #3
0
ファイル: views.py プロジェクト: abish125/test_front_end
def search_scholar(request):
    s = str(txt("innovation", "succi", 1))
    return render(request, 'polls/search_scholar', {'s': s})