How to load data from Whisky Hunter to DynamoDB
Learn how to use Airbyte to synchronize your Whisky Hunter data into DynamoDB within minutes.


Building your pipeline or Using Airbyte
Airbyte is the only open source solution empowering data teams to meet all their growing custom business demands in the new AI era.
- Inconsistent and inaccurate data
- Laborious and expensive
- Brittle and inflexible
- Reliable and accurate
- Extensible and scalable for all your needs
- Deployed and governed your way
Start syncing with Airbyte in 3 easy steps within 10 minutes



Take a virtual tour
Demo video of Airbyte Cloud
Demo video of AI Connector Builder
Setup Complexities simplified!
Simple & Easy to use Interface
Airbyte is built to get out of your way. Our clean, modern interface walks you through setup, so you can go from zero to sync in minutes—without deep technical expertise.
Guided Tour: Assisting you in building connections
Whether you’re setting up your first connection or managing complex syncs, Airbyte’s UI and documentation help you move with confidence. No guesswork. Just clarity.
Airbyte AI Assistant that will act as your sidekick in building your data pipelines in Minutes
Airbyte’s built-in assistant helps you choose sources, set destinations, and configure syncs quickly. It’s like having a data engineer on call—without the overhead.
What sets Airbyte Apart
Modern GenAI Workflows
Move Large Volumes, Fast
An Extensible Open-Source Standard
Full Control & Security
Fully Featured & Integrated
Enterprise Support with SLAs
What our users say

Raman Singh
Predictable, straightforward pricing model that simplified budgeting and significantly reduced overall spend

Chase Zieman

“Airbyte helped us accelerate our progress by years, compared to our competitors. We don’t need to worry about connectors and focus on creating value for our users instead of building infrastructure. That’s priceless. The time and energy saved allows us to disrupt and grow faster.”

Rupak Patel
"With Airbyte, we could just push a few buttons, allow API access, and bring all the data into Google BigQuery. By blending all the different marketing data sources, we can gain valuable insights."
How to Sync to Manually
Begin by extracting the data from Whisky Hunter. This can be done via web scraping if an API is not available. Use Python libraries like `requests` and `BeautifulSoup` to scrape the data. Ensure you adhere to legal and ethical guidelines while scraping websites.
```python
import requests
from bs4 import BeautifulSoup
url = 'https://www.whiskyhunter.net/'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')
data_items = soup.find_all('div', class_='data-item') # Example selector
```
Once the data is extracted, parse and structure it into a format suitable for DynamoDB, such as JSON. This involves identifying the relevant data fields.
```python
structured_data = []
for item in data_items:
data_dict = {
'name': item.find('span', class_='name').text,
'price': item.find('span', class_='price').text,
# Add other fields as necessary
}
structured_data.append(data_dict)
```
Set up AWS SDK for Python, also known as Boto3, to interact with DynamoDB. Install Boto3 if not already installed using `pip install boto3` and configure your AWS credentials.
```python
import boto3
session = boto3.Session(
aws_access_key_id='YOUR_ACCESS_KEY',
aws_secret_access_key='YOUR_SECRET_KEY',
region_name='YOUR_REGION'
)
dynamodb = session.resource('dynamodb')
```
Before loading the data, ensure the target DynamoDB table exists. If not, create a new table with a primary key that matches the data schema.
```python
table_name = 'WhiskyData'
try:
table = dynamodb.create_table(
TableName=table_name,
KeySchema=[
{'AttributeName': 'name', 'KeyType': 'HASH'},
],
AttributeDefinitions=[
{'AttributeName': 'name', 'AttributeType': 'S'},
],
ProvisionedThroughput={
'ReadCapacityUnits': 5,
'WriteCapacityUnits': 5
}
)
table.wait_until_exists()
except dynamodb.meta.client.exceptions.ResourceInUseException:
table = dynamodb.Table(table_name)
```
Convert the structured data into a format compatible with DynamoDB, ensuring all data types are correctly mapped.
```python
for item in structured_data:
item['price'] = int(item['price'].replace('$', '')) # Example transformation
# Perform other transformations as necessary
```
Insert the transformed data into the DynamoDB table using batch write operations to improve efficiency.
```python
with table.batch_writer() as batch:
for item in structured_data:
batch.put_item(Item=item)
```
After loading the data, verify the transfer by querying the DynamoDB table to ensure all records were inserted correctly.
```python
response = table.scan()
for item in response['Items']:
print(item)
```
This guide assumes you have basic knowledge of Python and AWS services. Be sure to replace placeholders like 'YOUR_ACCESS_KEY' with actual values and adjust the code snippets to fit the specific structure of the Whisky Hunter data and your DynamoDB schema.