Skip to content

Commit

Permalink
source-instagram: Convert to airbyte-lib (#34254)
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Reuter authored Jan 16, 2024
1 parent 9ddb432 commit bc39ff5
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 9 deletions.
9 changes: 2 additions & 7 deletions airbyte-integrations/connectors/source-instagram/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_instagram import SourceInstagram
from source_instagram.run import run

if __name__ == "__main__":
source = SourceInstagram()
launch(source, sys.argv[1:])
run()
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ data:
connectorSubtype: api
connectorType: source
definitionId: 6acf6b55-4f1e-4fca-944e-1a3caef8aba8
dockerImageTag: 3.0.1
dockerImageTag: 3.0.2
dockerRepository: airbyte/source-instagram
githubIssueLabel: source-instagram
icon: instagram.svg
Expand Down
5 changes: 5 additions & 0 deletions airbyte-integrations/connectors/source-instagram/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
]

setup(
entry_points={
"console_scripts": [
"source-instagram=source_instagram.run:run",
],
},
name="source_instagram",
description="Source implementation for Instagram.",
author="Airbyte",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
#


import sys

from airbyte_cdk.entrypoint import launch
from source_instagram import SourceInstagram


def run():
source = SourceInstagram()
launch(source, sys.argv[1:])
3 changes: 2 additions & 1 deletion docs/integrations/sources/instagram.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ Instagram limits the number of requests that can be made at a time. See Facebook

| Version | Date | Pull Request | Subject |
|:--------|:-----------|:---------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------|
| 3.0.2 | 2024-01-15 | [34254](https://github.com/airbytehq/airbyte/pull/34254) | prepare for airbyte-lib |
| 3.0.1 | 2024-01-08 | [33989](https://github.com/airbytehq/airbyte/pull/33989) | Remove metrics from video feed |
| 3.0.0 | 2024-01-05 | [33930](https://github.com/airbytehq/airbyte/pull/33930) | Upgrade to API v18.0 |
| 2.0.1 | 2024-01-03 | [33889](https://github.com/airbytehq/airbyte/pull/33889) | Change requested metrics for stream `media_insights` |
Expand Down Expand Up @@ -141,4 +142,4 @@ Instagram limits the number of requests that can be made at a time. See Facebook
| 0.1.7 | 2021-07-19 | [4805](https://github.com/airbytehq/airbyte/pull/4805) | Add support for previous `STATE` format |
| 0.1.6 | 2021-07-07 | [4210](https://github.com/airbytehq/airbyte/pull/4210) | Refactor connector to use CDK: - improve error handling - fix sync fail with HTTP status 400 - integrate SAT |

</HideInUI>
</HideInUI>

0 comments on commit bc39ff5

Please sign in to comment.