Giter Club home page Giter Club logo

drivers's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

drivers's Issues

Newsapi - Typeerror due to typo in get method

Newsapi driver Type error

Error: TypeError: get() got multiple values for argument 'fields'

going through the code, get method has "image" specified twice

def get(self, fields=["image", "title", "image", "link"], limit=20, **kargs):

Notion driver doesn't populate value of "Relation" type page property

What is expected?

A page or a database entry fetched by notion driver populates and persists "Relation" type page property.

What is observed?

"Relation" type page property is not populated in naas notion driver. So when I update any of my databases with any other field (eg. select, rich_text, url etc) all "Relation" type properties get set to "" (empty value).

๐Ÿง‘โ€๐Ÿ’ป ๐Ÿ‘‰ Each time an entry in my database is updated usin naas notion driver, the relation property get deleted. ๐Ÿ˜ญ I ran the script in a cron job. So in a few days all the reation information in my database dissapeared. ๐Ÿ’”

Additional Information

  1. when a database is fetched, the relation properties in page looks like this
COLUMN_NAME: !!python/object:naas_drivers.tools.notion.PagePropertyRelation
  id: Sqt%7D
  relation: []
  type: relation

ie the relation field is []
2. what i could find in notion api documentation
- https://developers.notion.com/reference/property-object#database-properties
- https://developers.notion.com/reference/property-object#relation-configuration
3. looks like something is broken here:

def new(data):

Refactoring naas_drivers folders

As of today, the naas_drivers folder has different subfolders

  • Input
  • InputOuput
  • Output

We want to put everything under one "tools" folder that will make the development and search of integrations easier.

Extract logs from LinkedIn api

The goal is to get some insight about the usage of our LinkedIn API. This will allow us to understand how the api is used, detect potential errors, make sure the usage stays "correct" (in term of traffic) during the beta testing phase.

Notion - Update driver with API methods

List of formulas we could develop to update current drivers

Connect

token = "*********"
naas_drivers.notion.connect(token)

Get page

url = "*********"
naas_drivers.notion.connect(token).page.get(url)

Get database

url = "*********"
naas_drivers.notion.connect(token).database.get(url)

Create page

parent_id = "*********" #can be id of wokspace or id or parent page
naas_drivers.notion.connect(token).page.create(parent_id, properties, content)

Add properties

properties.name = "The name of my page"
properties.created_date = "14/09/2021"

content.heading1 = "My heading 1"
content.heading2 = "My heading 2"

To be developped further @axelearning @FlorentLvr

Redshift/Athena - SQL query on S3

Run query in files stored in AWS bucket S3
Today, I store my petabytes of data in a bucket S3, I would be able to query those files directly through naas.

TBD

LinkedIn. get_posts_stats() Does not recognize LinkedIn Polls and LinkedIn Shares Posts

I noticed when using linkedin.connect(LI_AT, JSESSIONID).profile.get_posts_stats(PROFILE_URL) I was having data quality issues where I had 0 views, which is unlikely on this platform.
Screen Shot 2021-07-18 at 6 20 54 PM

When clicking into the provided URLs I was taken to the following screen:
Screen Shot 2021-07-18 at 6 23 27 PM

Upon further inspection, it seems that 1) this function struggles to pick up LinkedIn poll posts, and 2) when sharing posts from other users, it attributes the shared post as your own with 0 for all stats. Examples of such posts are below:
Screen Shot 2021-07-18 at 6 28 07 PM
Screen Shot 2021-07-18 at 6 26 04 PM

Notion - Get collection: not working

User: alexandre inukai

"I can't get my data using the notion driver.
Error: ""message", "There was an error (400) submitting the request."
HTTPError: Invalid input."
Token is correct as it is working with another unofficial api (notion automation).
I try to get a notion table which is in table view.
Same error when trying to get the content of a page.
No idea where it can come from as it is working for my personal notion account.
Thanks
"
March 25, 2021

Add requirements to the README

As a user, I want to be able to see the requirements from the README to be able to install it locally.

OS: Windows...
Package: Python version /

Taggun API Driver

Add a driver to support the taggun receipt ocr API

https://www.taggun.io/

Should allow requesting both simple and verbose results

eventually should also support resubmitting for training purposes

Codec Error while pip install naas_drivers

Environment

  • Windows 8.1
  • Conda-4.10.3
  • python 3.8

Error : Command errored out with exit status 1: python setup.py egg_info check the logs for more info

Error elaborated: UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 1130: character maps to

Setup.py line 4 long_description = fh.read() is causing this error

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.