Git Product home page Git Product logo

instasaver's Introduction

instasaver's People

Contributors

dahawong avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sodiqboy

instasaver's Issues

i18n support

Add supports for other languages:

  1. a new command /language to select interface language;
  2. ...which calls out a ReplyKeyboard.

Database backend support

Databases should be added, for these concerns shown below:

  1. Full text search
  2. Bookmark tagging
  3. Improve performance

However, we should handle legacies first, for we're using pickle persistence now.

Add bookmark content preview after saving a link

After saving a link, a page preview can be shown to the user via telegraph instant view. This should be done by converting bookmark's full-text html to telegraph valid nodes.

  1. full-text html can be fetched by instapaper api get_text;
  2. keep in mind that not all instapaper html tags are supported by telegraph, supported tags are: a, aside, b, blockquote, br, code, em, figcaption, figure, h3, h4, hr, i, iframe, img, li, ol, p, pre, s, strong, u, ul, video (source).

Move to folder button for a bookmark

Add a inline keyboard button shows Move to folder… after sending a saved bookmark, then it switch to an inline query in current chat that list all the folders the user has to move the bookmark to.

The inline query might looks like @saveinstapaper_bot /

After selecting the folder, a message sent via bot to trigger the actual moving process, like bookmark_{bookmark_id}_to_folder_{folder_id}, this message should be handled by a specific regex message handler.

Codes wrapped with <div> not rendered properly with <pre>

e.g. Expected:

import * as React from 'react';
import ReactDOM from 'react-dom';

const title = 'Hello React';

ReactDOM.render(
  <div>{title}</div>,
  document.getElementById('app')
);

but got:

import * as React from 'react';import ReactDOM from 'react-dom';
const App = () => {  const [counter, setCounter] = React.useState(42);
  return (    <div>      <button onClick={() => setCounter(counter + 1)}>        Increase      </button>      <button onClick={() => setCounter(counter - 1)}>        Decrease      </button>
      {counter}    </div>  );};
ReactDOM.render(  <App />,  document.getElementById('app'));

Request to Instapaper API does not have error management

Should handle error based on response code, e.g. don't save 404 url as a bookmark preview.

General errors:

1040: Rate-limit exceeded
1041: Premium account required
1042: Application is suspended
Bookmark errors:

1220: Domain requires full content to be supplied
1221: Domain has opted out of Instapaper compatibility
1240: Invalid URL specified
1241: Invalid or missing bookmark_id
1242: Invalid or missing folder_id
1243: Invalid or missing progress
1244: Invalid or missing progress_timestamp
1245: Private bookmarks require supplied content
1250: Unexpected error when saving bookmark
Folder errors:

1250: Invalid or missing title
1251: User already has a folder with this title
1252: Cannot add bookmarks to this folder
Operational errors:

1500: Unexpected service error
1550: Error generating text version of this URL

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.