https://github.com/jamalex/notion-py
<aside> 💡 notion_py 라이브러리 사용법 숙지 🥅 GOAL: notion 페이지 자동화 (논문 크롤링 및 자산관리 자동화)
</aside>
https://github.com/jamalex/notion-py
pip3 install notion
from notion.client import NotionClient
# Obtain the `token_v2` value by inspecting your browser cookies on a logged-in (non-guest) session on Notion.so
client = NotionClient(token_v2="<token_v2>")
# Replace this URL with the URL of the page you want to edit
page = client.get_block("<url>")
print("The old title is:", page.title)
# Note: You can use Markdown! We convert on-the-fly to Notion's internal formatted text data structure.
page.title = "The title has now changed, and has *live-updated* in the browser!"
에러메시지: requests.exceptions.HTTPError: Invalid input.
해결 방법: pip3 install -e git+https://github.com/c0j0s/notion-py#egg=notion
scholarly docs
주요 함수
# search_author
>>> search_query = scholarly.search_author('Marty Banks, Berkeley')
# search_keyword
>>> search_query = scholarly.search_keyword('Haptics')
# search_pubs_query
>>> search_query = scholarly.search_pubs_query(
'Perception of physical stability and center of mass of 3D objects'
)
>>> scholarly.pprint(next(search_query))
docs
example
from pyarxiv import query, download_entries
from pyarxiv.arxiv_categories import ArxivCategory, arxiv_category_map
#query(max_results=100, ids=[], categories=[],
# title='', authors='', abstract='', journal_ref='',
# querystring='')
entries = query(title='WaveNet')
titles = map(lambda x: x['title'], entries)
print(list(titles))
#download_entries(entries_or_ids_or_uris=[], target_folder='.',
# use_title_for_filename=False, append_id=False,
# progress_callback=(lambda x, y: id))
download_entries(entries)
entries_with_category = query([ArxivCategory.cs_AI])
print(arxiv_category_map(ArxivCategory.cs_AI))