wrjlewis
-
Posts
100 -
Joined
-
Last visited
Reputation Activity
-
wrjlewis got a reaction from joss in Notion.so Instant Search Workflow
Yeah indeed. They’ve been playing around in the search api area for a while by the looks of it. I’m actually half expecting some breaking changes soon but so far we’ve been lucky..
-
wrjlewis got a reaction from olivergiangvu in Notion.so Instant Search Workflow
I had the same issue just now, updated my cookie value with a fresh copy/paste and it now works.
-
wrjlewis got a reaction from olivergiangvu in Notion.so Instant Search Workflow
New release day 🥳
v0.6
Type ‘nsn’ for the option to quickly open a new page in Notion. Very handy! (Only supports the web app currently) #83 - Fixed a bug that would cause an error and no more results to be displayed, relating to new Notion projects and icons. Update readme with: 'new notion page' functionality new cairo instructions for those on apple silicon, use at your own risk but they work for me and svg icons now appear in search results. Still supporting both Alfred4 and Alfred5:
Alfred 5 version
Latest Download
Alfred 4 version
Latest Download
Either download with the above links or as usual the workflow will update automatically the next time you use it to open a page, within max one day from now.
-
wrjlewis got a reaction from hug101 in Notion.so Instant Search Workflow
Ah thats strange, I was almost sure I was able to do that at some point.
Either way, I've found how to do it and will add it to the next release. I'm not sure when that will be, I tend to add a few features then go through the process of releasing a new version of the workflow. But you can track that here https://github.com/wrjlewis/notion-search-alfred5-workflow/issues/6
Thanks for the suggestion
-
wrjlewis got a reaction from hug101 in Notion.so Instant Search Workflow
For those who love Notion.so (really great documentation & more tool), you will know how useful it would be to get instant search results from Notion in Alfred.
To that reason I've created a workflow that does exactly that, allowing you to search your Notion.so workspace from Alfred, showing instant results, and the ability to open the browser to your selected page.
There are two env variables required (the notion search api isn't documented), these can be obtained by inspecting the network request from a notion search, as documented in github below.
Check it out and download here: https://github.com/wrjlewis/notion-search-alfred-workflow/blob/master/README.md
-
wrjlewis reacted to hug101 in Notion.so Instant Search Workflow
This would be terrific and much appreciated. Again, kudos on releasing such a fantastic workflow. It's really appreciated!
-
wrjlewis got a reaction from Pirat in Notion.so Instant Search Workflow
Ah thanks, yes the right one is notion_user_id.
This could be related to a bug that I haven't released a fix to in relation to the way python handles cookies. Basically if there is a curly brace '{' or a '}' in the cookie somewhere, the code will not read anything after this point.
Could you check if there is a curly brace in your cookie somewhere, and if so delete that whole part of the cookie. Most likely you will need to delete everything from and including 'notion_cookie_consent'= to and including the next semi colon ';' . That should cover removing all values that have a curly braces.
Try again with you have left, and I wonder if that will work for you now.
-
wrjlewis got a reaction from Pirat in Notion.so Instant Search Workflow
Pleased to hear it's working (mostly) well!
For the "Show Recently Viewed" function to work, you need to make sure that in your cookie you have a user id value. This will be the case if you have copied the whole cookie value from your browser rather than just the token_v2.
Have you got user_id in your cookie? (don't paste your cookie here because the information is sensitive)
-
wrjlewis got a reaction from dterranova in Notion.so Instant Search Workflow
Awesome! Really glad to hear it helps. I find it so useful personally!
-
wrjlewis got a reaction from fskdjfn in Notion.so Instant Search Workflow
Thanks!
I've added an issue for it: https://github.com/wrjlewis/notion-search-alfred5-workflow/issues/5
I'll fix this in the next release 👍
-
wrjlewis reacted to fskdjfn in Notion.so Instant Search Workflow
Thanks for sharing the digging!
I tried PR but got denied from GitHub. So here's the notion.py I updated: https://tech.io/snippet/0TmWuss.
-
wrjlewis got a reaction from billyadams in Notion.so Instant Search Workflow
Hey
It is possible to do, but its way beyond the scope of making a few modifications to this script. This workflow searches pages, it doesn't get the contents of pages (or databases) and do things with it.
You would need a new workflow, new code, and different calls to Notion.
After a quick look, you'd want to make a call to https://www.notion.so/api/v3/queryCollection? with the appropriate query parameters, the database contents will be within the response in recordMap - block - value - properties.. There you'd need to apply some logic to figure out which is the corresponding account code. Quite a lot of work to do, and for quite a custom use case.
-
wrjlewis reacted to flymingo in Notion.so Instant Search Workflow
thank you very much !!! it works
For anyone who still wonders on how to fix this, i got mine by installing the "Install Certificates.command"
( /Applications/Python\ 3.10/Install\ Certificates.command)
-
wrjlewis reacted to mwpark2014 in Notion.so Instant Search Workflow
Ahh, that was literally it! I was an idiot and couldn't figure out how to trigger the "https://www.notion.so/api/v3/search". The cookie was the same, but the spaceId was slightly different. After the change, it works perfectly. Thank you!
-
wrjlewis got a reaction from Jonathan Baillie Strong in Notion.so Instant Search Workflow
I’m on holiday so can’t look at this for a week, but I reckon notion have changed their api so we’ll need to update our integration.
-
wrjlewis reacted to vitor in Notion.so Instant Search Workflow
Welcome @fonrims,
Tried how? Don’t change the Workflow itself, it picks its own Python (3) version. But that error is not related to the language. If you installed Python 3 yourself (instead of letting macOS do it for you) you may need to install the certificates yourself too.
That version is still up for review. If you’re having an issue, use the one officially out.
-
wrjlewis reacted to fonrims in Notion.so Instant Search Workflow
Thank you it helped! Installed back an official version 😉
-
wrjlewis reacted to SMN in Notion.so Instant Search Workflow
it is !
I remembered that I had to instal this python3 things on my MacBook Pro too !
-
wrjlewis got a reaction from pokemon in Notion.so Instant Search Workflow
New version (including a migration to Python3) available here:
https://github.com/wrjlewis/notion-search-alfred-workflow/releases/latest/download/Notion.Search.alfredworkflow
** Recently Viewed Pages ** Your most recently viewed notion pages are shown when triggering the workflow. Simply type the 'ns' keyword to start the workflow, as you would before you search, and your most recently viewed notion pages are displayed.
The workflow has been migrated to Python3 - ensuring compatibility with future versions of MacOS: "Python 2.7 was removed from macOS [12.3]. Developers should use Python 3 or an alternative language instead. (39795874)"
Fixed issue with no results in certain circumstances with collections/dbs
Fixed issue with null highlight on non-page elements - thanks to @ymszzq
Fixed issue retrieving and displaying notion icons in results, due to change in internal notion APIs
Fixed issue where externally hosted icons wouldn't show in results
Slightly better error handling when no results are returned
-
wrjlewis reacted to Pinuz in Notion.so Instant Search Workflow
Sorry for this late reply but for some reasons I haven't been notified about it.
Just refreshing the cookie works, thank you friend! 🙏
-
wrjlewis got a reaction from gohoyer in Notion.so Instant Search Workflow
For those who love Notion.so (really great documentation & more tool), you will know how useful it would be to get instant search results from Notion in Alfred.
To that reason I've created a workflow that does exactly that, allowing you to search your Notion.so workspace from Alfred, showing instant results, and the ability to open the browser to your selected page.
There are two env variables required (the notion search api isn't documented), these can be obtained by inspecting the network request from a notion search, as documented in github below.
Check it out and download here: https://github.com/wrjlewis/notion-search-alfred-workflow/blob/master/README.md
-
wrjlewis reacted to vitor in Notion.so Instant Search Workflow
That is exactly what’s happening.
Again, correct.
Just invoking python3 is enough to trigger the prompt to install the CLI tools, and it will be a GUI prompt. A user with Homebrew installed will already have those installed.
Is that an additional step? Kind of, but it’s a one-time thing that is over in two clicks, it’s pretty straightforward, and not everyone will need to do it.
For reference, the version will be 3.8.9.
That won’t work for the current state of the Workflow. I mean, they can install Python 2 but not to the location where it was because that’s protected. You have to at least expand the PATH in the Workflow before calling the script:
export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}"
To install Python 2, @AlexUfa could install Homebrew, then:
export PATH="/opt/homebrew/bin:/usr/local/bin:${PATH}" eval "$(brew shellenv)" brew install pyenv pyenv install 2.7.18 ln -s "${HOME}/.pyenv/versions/2.7.18/bin/python2.7" "${HOMEBREW_PREFIX}/bin/python"
That installs pyenv (a Python version manager), then the latest Python 2, then links it to the Homebrew prefix. They could also try the old Homebrew formula, but that won’t work on Apple Silicon without modification.
I highly recommend you avoid installing beta operating systems (especially macOS) if you’re not at ease debugging and fixing these kinds of issues on your own. Beta OSs are unstable and things stop working all the time.
Plus, you get into those types of situations. You can’t get out of it by installing Python 3, because it’s incompatible with Python 2 scripts.
Naturally, if you want things to break because what you care is the experimentation, more power to you!
-
wrjlewis got a reaction from Buchholdt in Notion.so Instant Search Workflow
For those who love Notion.so (really great documentation & more tool), you will know how useful it would be to get instant search results from Notion in Alfred.
To that reason I've created a workflow that does exactly that, allowing you to search your Notion.so workspace from Alfred, showing instant results, and the ability to open the browser to your selected page.
There are two env variables required (the notion search api isn't documented), these can be obtained by inspecting the network request from a notion search, as documented in github below.
Check it out and download here: https://github.com/wrjlewis/notion-search-alfred-workflow/blob/master/README.md
-
wrjlewis reacted to ian_989 in Notion.so Instant Search Workflow
It's worth noting that as of today the public Notion API does not support the full feature set of the private API. Notably, you cannot access the entire workspace, only a subset. In other words, you cannot get all your pages using the public API, instead you get all the sub pages of whatever page or database you share with the integration.
This issue will likely pose some difficulties for this workflow.
That being said, the Notion API is in beta, so hopefully they will update it to allow full workspace access.
-
wrjlewis got a reaction from joeynotjoe in Notion.so Instant Search Workflow
Hey, yes will definitely be adding this at some point! Just need to find some time to start on it 😁.
The only thing stopping me from being too urgent about it, is the fact you need to be an admin in your workspace in order to use the Notion API.
Do you use this tool for your personal notion workspace or for your work's notion workspace? Or both? Unless you're admin for your works notion workplace, you won't be able to use the Notion API for that anyway.
Notion say they will improve the authentication process, so you don't have to be an admin to use it, in the future, which I think will be key for a lot of people's use.