A logseq plugin to extract tweets. Optionally tag the tweet's author as well.

Overview

Logseq Twitter Extractor Plugin

If this plugin helps you, I'd really appreciate your support. You can buy me a coffee here. A quick utility to parse a twitter link into a post with a user specified template. Inspired by the Roam Smartblock for twitter extraction. Screen Recording 2022-03-27 at 5 12 12 PM

Instructions

  1. Navigate to a block with the twitter URL
  2. Use the slash command /Parse Twitter URL
  3. Enjoy :)

Configuration

  1. In plugin settings, you can configure custom templates
  2. Use {URL}, {Name}, {Username}, {Date}, and {Tweet} as placeholders in the template which will be auto replaced
  3. Template 1 is the block that the logseq block with URL will be replaced into
  4. Template 2 is an optional block that will be indented under the first block
Comments
  • CORS policy issue

    CORS policy issue

    Trying to parse the twitter URL https://twitter.com/aarontay/status/1507044203737464832?s=20&t=p3uW78m_eqU0urfI7SHdow, I’m seeing the following issue in the console and nothing else happens:

    Access to XMLHttpRequest at 'https://api.twitter.com/2/tweets?ids=1507044203737464832&tweet.fields=created_at&expansions=author_id&user.fields=created_at' from origin 'lsp://logseq.io' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    
    opened by georgd 5
  • [QUESTION] How to trigger /parse for a list of URLs?

    [QUESTION] How to trigger /parse for a list of URLs?

    Thank you for this plugin. I would like to render a list of twitter bookmarks without having to enter each of their blocks to trigger a /Parse Twitter URL slash command. In my tests, adding a list of URLs in the form [tab] - [URL] /Parse Twitter URL to the source .md file does not render anything until I enter each block. Obviously, for a large number of bookmarks this is quite cumbersome. Is there an alternative?

    My template:

    {
      "InsertionTemplateForBlock1": "{Name} (@{UserName}) tweeted on {Date}:",
      "InsertionTemplateForBlock2": "{TWEET} {{tweet {URL}}}",
      "disabled": false
    }
    
    opened by johnghill 4
  • keybinding support + lockfile cleanup

    keybinding support + lockfile cleanup

    Lock-file is not needed (afaik).

    Figuring out how to do keybindings. The idea is that it reloads them when you change them (otherwise you have to reload/restart Logseq)

    This needs testing!

    opened by QWxleA 1
  • Cannot read properties of undefined

    Cannot read properties of undefined

    when enabling the plugin got popup with following error

    :plugin.logseq-tweet-extractor/ParseTwitter Cannot read properties of undefined (reading 'forEach')

    ubuntu 22.10

    logseq 0.8.9

    opened by rachmadaniHaryono 4
  • Allow for a block 3

    Allow for a block 3

    I'd love to see a third block for insertion.

    So far my setup is:

    • block 1:
      • [[tweet]] from [{NAME}]([[@{Username}]]) on [[{Date}]]
    • block 2:
      • {TWEET} {{tweet {URL}}}

    I'd like to have a block 3 and place the {{tweet {URL}} there so that I can collapse block 2 and hide the embed.

    opened by galligan 1
  • Any changes to settings triggers errors

    Any changes to settings triggers errors

    Steps to reproduce:

    1. Install plugin
    2. Open plugin settings
    3. Change keyboard shortcut to: cmd+shift+t
    4. Errors thrown (Screenshot attached)

    I also can't figure out how to create more sophisticated templates (ie have properties in the second block, newlines in the settings json file don't seem to work)

    CleanShot 2022-04-21 at 11 45 17@2x n
    opened by montnyc 0
Owner
Maker of @logseq plugins + more cool stuff
null
Logseq-craft-theme - Craft Theme for Logseq

Craft for Logseq Almost all creativity requires purposeful play. A Craft insprir

Alexander Rink 33 Oct 26, 2022
Parallel/concurrent async work, optionally using multiple threads or processes

parallel-park Parallel/concurrent async work, optionally using multiple processes Usage parallel-park exports two functions: runJobs and inChildProces

Lily Scott 10 Mar 1, 2022
🌈 Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage

crypif Put a date and a crypto, optionally a quantity of that crypto, to see how much has augmented/increased in dollars & percentage Figma I still ha

Eliaz Bobadilla 8 Apr 4, 2022
Render arbitrary Markdown content in Astro, optionally integrating with any existing configuration.

Astro Markdown Astro Markdown lets you render arbitrary Markdown content in Astro, optionally integrating with any existing configuration. --- import

Astro Community 14 Dec 22, 2022
Creates a table of contents in a DOM element optionally linked to with anchors. No jQuery or other dependencies.

HTML-Contents Creates a table of contents in a DOM element optionally linked to with anchors. No dependencies. @psalmody Get It We're on npm: npm i ht

Michael Tallino 3 Oct 25, 2022
Obsidian Extract PDF Annotations Plugin

Obsidian Extract PDF Annotations Plugin This is a plugin for Obsidian. It extracts Annotations from PDF Files. Usage This Plugin visits all PDF files

null 15 Dec 22, 2022
Migrate unfinished tasks to today, Logseq plugin

Unfinished-business Unfinished Business Because the day may be over, but your business isn't View Demo · Report Bug · Request Feature This plugin migr

Alex 23 Nov 16, 2022
Plugin that lets you create diagrams from textual representation (aka 'Diagrams as Code') within Logseq

Logseq - Diagrams as Code Plugin that lets you create diagrams (and other visualizations) from textual representation (aka 'Diagrams as Code') within

Nicolai P. Großer 80 Dec 21, 2022
A plugin to export pages in Logseq to Hugo.

logseq Schrödinger An awesome Logseq plugin to jumpstart your digital garden ?? ! Explore the docs » View Demo · Report Bug · Request Feature Table of

null 162 Jan 8, 2023
A simple to-do list plugin for logseq

Logseq Todo Plugin A simple to-do list plugin for logseq Feature quick add new to-do items to today's journal page show all today's to-do items (inclu

Yuexun Jiang 71 Jan 1, 2023
A file manager plugin for logseq(Search unused assets file)

logseq-plugin-file-manager Search files from assets and draws but not used in journals or pages. Please backup files before operation, and before dele

Hayden Chen 17 Dec 23, 2022
a Logseq plugin to float items (e.g. videos) for an improved note-taking experience

logseq-helium-plugin Features Float videos for better note-taking in 3 ways: Block context menu (right-click on bullet) → ?? Start float Slash (/) com

Vivian Leung 58 Jan 2, 2023
Flexible plugin for Logseq that annotates deadline/schedule times with a countdown or time difference

Interval Hints Synopsis Configurable Logseq plugin to annotate deadline and scheduled times with a countdown or interval. Features Block renderer to a

Kerfuffle 8 Aug 29, 2022
A plugin for GPT-3 AI assisted note taking in Logseq

logseq-plugin-gpt3-openai A plugin for GPT-3 AI assisted note taking in Logseq Usage Just type /gpt3 in a block or select gpt3 from the block menu. Se

Brian Sunter 301 Jan 3, 2023
This Plugin is For Logseq. If you're using wide monitors, you can place journals, linked references, and journal queries side by side.

Logseq Column-Layout Plugin Journals, linked references, and journal queries can be placed side by side if the minimum screen width is "1850px" or mor

YU 14 Dec 14, 2022
Icons for links. Logseq Plugin

"Awesome Links" plugin for Logseq Favicons for external links! ?? Pages icons for internal links ?? Page iconsicon::extended from Emoji to hundreds ic

Yuriy Piskun 37 Dec 21, 2022
Tag cloud plugin for jQuery, showing bigger tags in the center

jquery.tagcloud v1.2.0 Tag cloud plugin for jQuery, showing bigger tags in the center. Usage There are two ways to define a tag cloud: Use ul and li H

Peter Thoeny 1 Jun 30, 2022
Detect npm packages by author name in your package-lock.json or yarn.lock.

detect-package-by-author Detect npm packages by author name in your package-lock.json or yarn.lock. Install Install with npm: # Not Yet Publish # npm

azu 2 Jan 11, 2022
Awsome-Books is an app that let you create a list of books by adding the book name and the author.

This app create a list of books, naming author and title. The lis of books is created dynamicly using javascrtipt, every time the user add a new book on the Add New Section. All the methods and fuctions are separated in modules and imported to the index.js file.

Tomas Milanesi 9 Jul 21, 2022