We want to build a custom Airbyte source connector...
# replication-troubleshooting
r
We want to build a custom Airbyte source connector which needs pull data from Apple Search Ads and we want to reuse a python library which is already there to pull this data. So we would like to wrap the library calls in Airbyte source connector. We generated a python HTTP API source connector using generator script and noticed the interface is based on requests library, but we want to use our existing custom module for this. We don't want to rely on these methods which uses requests module. Since out custom python module already does this
Copy code
def next_page_token(self, response: requests.Response) -> Optional[Mapping[str, Any]]:
        return None
 
    def request_params(
        self, stream_state: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_page_token: Mapping[str, Any] = None
    ) -> MutableMapping[str, Any]:
        return {}
 
    def parse_response(self, response: requests.Response, **kwargs) -> Iterable[Mapping]:
        yield {}
What type of source connector will be the right choice to use here? Should we use Python HTTP connector, Python Source connector or Python Generic Source connector ?
Appreciate any inputs on the above