shariq / notion-on-firebase Goto Github PK
View Code? Open in Web Editor NEWserve notion.so pages on firebase hosting, enabling search engine indexing and custom routes
License: MIT License
serve notion.so pages on firebase hosting, enabling search engine indexing and custom routes
License: MIT License
Hi, how are you @shariq?
I'm attempting to use this project for the purpose it was built for, and even though I get it to work quite well with commit 68d4659, I can't quite get the purpose of the new meta_json dictionary (now required in commit f514ab1) - is it to define the page -> short_url mapping without requiring the user to give it as an input?
Could you show me a sample meta_json dictionary?
Thank you!
page title: Scrapbook
encountered error while scraping d065149ff38a4e7a9b908aeb262b0f4f
Traceback (most recent call last):
File "/home/vai/web/notion-on-firebase/spider.py", line 31, in notion_spider
html, new_pages = notion.scrape_notion_page(page, meta_json=meta_json)
File "/home/vai/web/notion-on-firebase/notion.py", line 130, in scrape_notion_page
login_element = driver.find_element_by_xpath('//a[@href="/login"]')
File "/home/vai/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 394, in find_element_by_xpath
return self.find_element(by=By.XPATH, value=xpath)
File "/home/vai/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 978, in find_element
'value': value})['value']
File "/home/vai/.local/lib/python2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/vai/.local/lib/python2.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//a[@href="/login"]"}
(Session info: chrome=79.0.3945.117)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.