|
| 1 | +version: 4.6.2 |
| 2 | + |
| 3 | +type: DeclarativeSource |
| 4 | + |
| 5 | +description: >- |
| 6 | + Website: https://www.buzzsprout.com/ |
| 7 | +
|
| 8 | + API Docs: https://github.com/buzzsprout/buzzsprout-api/tree/master/sections |
| 9 | +
|
| 10 | + Auth Docs: |
| 11 | + https://github.com/buzzsprout/buzzsprout-api/tree/master?tab=readme-ov-file#authentication |
| 12 | +
|
| 13 | + API Keys page: https://www.buzzsprout.com/my/profile/api |
| 14 | +
|
| 15 | +check: |
| 16 | + type: CheckStream |
| 17 | + stream_names: |
| 18 | + - episodes |
| 19 | + |
| 20 | +definitions: |
| 21 | + streams: |
| 22 | + episodes: |
| 23 | + type: DeclarativeStream |
| 24 | + name: episodes |
| 25 | + primary_key: |
| 26 | + - id |
| 27 | + retriever: |
| 28 | + type: SimpleRetriever |
| 29 | + requester: |
| 30 | + $ref: "#/definitions/base_requester" |
| 31 | + path: "{{ config['podcast_id'] }}/episodes.json" |
| 32 | + http_method: GET |
| 33 | + request_headers: |
| 34 | + Authorization: Token token={{ config["api_key"] }} |
| 35 | + Content-Type: application/json; charset=utf-8 |
| 36 | + User-Agent: >- |
| 37 | + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 |
| 38 | + (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 |
| 39 | + error_handler: |
| 40 | + type: CompositeErrorHandler |
| 41 | + error_handlers: |
| 42 | + - type: DefaultErrorHandler |
| 43 | + max_retries: 3 |
| 44 | + backoff_strategies: |
| 45 | + - type: ExponentialBackoffStrategy |
| 46 | + factor: 2 |
| 47 | + response_filters: |
| 48 | + - type: HttpResponseFilter |
| 49 | + action: RATE_LIMITED |
| 50 | + http_codes: |
| 51 | + - 429 |
| 52 | + error_message: Rate limits hit |
| 53 | + record_selector: |
| 54 | + type: RecordSelector |
| 55 | + extractor: |
| 56 | + type: DpathExtractor |
| 57 | + field_path: [] |
| 58 | + incremental_sync: |
| 59 | + type: DatetimeBasedCursor |
| 60 | + cursor_field: published_at |
| 61 | + cursor_datetime_formats: |
| 62 | + - "%Y-%m-%dT%H:%M:%S.%f%z" |
| 63 | + datetime_format: "%Y-%m-%dT%H:%M:%S.%f%z" |
| 64 | + start_datetime: |
| 65 | + type: MinMaxDatetime |
| 66 | + datetime: '{{ config["start_date"] }}' |
| 67 | + datetime_format: "%Y-%m-%dT%H:%M:%SZ" |
| 68 | + end_datetime: |
| 69 | + type: MinMaxDatetime |
| 70 | + datetime: "{{ now_utc().strftime('%Y-%m-%dT%H:%M:%SZ') }}" |
| 71 | + datetime_format: "%Y-%m-%dT%H:%M:%SZ" |
| 72 | + schema_loader: |
| 73 | + type: InlineSchemaLoader |
| 74 | + schema: |
| 75 | + $ref: "#/schemas/episodes" |
| 76 | + podcasts: |
| 77 | + type: DeclarativeStream |
| 78 | + name: podcasts |
| 79 | + primary_key: |
| 80 | + - id |
| 81 | + retriever: |
| 82 | + type: SimpleRetriever |
| 83 | + requester: |
| 84 | + $ref: "#/definitions/base_requester" |
| 85 | + path: podcasts.json |
| 86 | + http_method: GET |
| 87 | + request_headers: |
| 88 | + Authorization: Token token={{ config["api_key"] }} |
| 89 | + Content-Type: application/json; charset=utf-8 |
| 90 | + User-Agent: >- |
| 91 | + Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 |
| 92 | + (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 |
| 93 | + error_handler: |
| 94 | + type: CompositeErrorHandler |
| 95 | + error_handlers: |
| 96 | + - type: DefaultErrorHandler |
| 97 | + max_retries: 3 |
| 98 | + backoff_strategies: |
| 99 | + - type: ExponentialBackoffStrategy |
| 100 | + factor: 2 |
| 101 | + response_filters: |
| 102 | + - type: HttpResponseFilter |
| 103 | + action: RATE_LIMITED |
| 104 | + http_codes: |
| 105 | + - 429 |
| 106 | + error_message: Rate limit hit |
| 107 | + record_selector: |
| 108 | + type: RecordSelector |
| 109 | + extractor: |
| 110 | + type: DpathExtractor |
| 111 | + field_path: [] |
| 112 | + schema_loader: |
| 113 | + type: InlineSchemaLoader |
| 114 | + schema: |
| 115 | + $ref: "#/schemas/podcasts" |
| 116 | + base_requester: |
| 117 | + type: HttpRequester |
| 118 | + url_base: https://www.buzzsprout.com/api/ |
| 119 | + |
| 120 | +streams: |
| 121 | + - $ref: "#/definitions/streams/episodes" |
| 122 | + - $ref: "#/definitions/streams/podcasts" |
| 123 | + |
| 124 | +spec: |
| 125 | + type: Spec |
| 126 | + connection_specification: |
| 127 | + type: object |
| 128 | + $schema: http://json-schema.org/draft-07/schema# |
| 129 | + required: |
| 130 | + - api_key |
| 131 | + - podcast_id |
| 132 | + - start_date |
| 133 | + properties: |
| 134 | + api_key: |
| 135 | + type: string |
| 136 | + order: 0 |
| 137 | + title: API Key |
| 138 | + airbyte_secret: true |
| 139 | + podcast_id: |
| 140 | + type: string |
| 141 | + description: Podcast ID found in `https://www.buzzsprout.com/my/profile/api` |
| 142 | + title: Podcast ID |
| 143 | + order: 1 |
| 144 | + start_date: |
| 145 | + type: string |
| 146 | + title: Start date |
| 147 | + format: date-time |
| 148 | + pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}Z$ |
| 149 | + order: 2 |
| 150 | + additionalProperties: true |
| 151 | + |
| 152 | +metadata: |
| 153 | + autoImportSchema: |
| 154 | + episodes: false |
| 155 | + podcasts: false |
| 156 | + testedStreams: |
| 157 | + episodes: |
| 158 | + streamHash: 2cbf7e4baa763d48b3afec49b302f097e82fa6b7 |
| 159 | + hasResponse: true |
| 160 | + responsesAreSuccessful: true |
| 161 | + hasRecords: true |
| 162 | + primaryKeysArePresent: true |
| 163 | + primaryKeysAreUnique: true |
| 164 | + podcasts: |
| 165 | + streamHash: 220c9469645385daaeea05a4d1821c1b003c4ca4 |
| 166 | + hasResponse: true |
| 167 | + responsesAreSuccessful: true |
| 168 | + hasRecords: true |
| 169 | + primaryKeysArePresent: true |
| 170 | + primaryKeysAreUnique: true |
| 171 | + assist: {} |
| 172 | + |
| 173 | +schemas: |
| 174 | + episodes: |
| 175 | + type: object |
| 176 | + $schema: http://json-schema.org/draft-07/schema# |
| 177 | + additionalProperties: true |
| 178 | + properties: {} |
| 179 | + podcasts: |
| 180 | + type: object |
| 181 | + $schema: http://json-schema.org/draft-07/schema# |
| 182 | + additionalProperties: true |
| 183 | + properties: {} |
0 commit comments