Skip to content

September 5 2023

The placebo effect is effective

Bram Adams
Bram Adams
2 min read
September 5 2023

Table of Contents



Use Python to tag multiple products w/ Amazon Affiliates (some of the ASINs seem to go "bad" if a product is delisted?

# loop through all books and create links
for book in all_books:
    asin = book['asin']
    title = book['title']
    link = f"https://www.amazon.com/dp/{asin}/?ref=nosim?tag={amazon_tag}"

    links.append({
        "title": title,
        "link": link,
        "asin": asin,
        "author": book['author'],
        "book_id": book['book_id'],
    })

# write both lists to json file { "links": [] }
with open('amazon_links.json', 'w') as f:
    json.dump({"links": links}, f, indent=4)


NEW SHARE FN, WHO DIS





son of the stud

the perils of homeownership include the interaction of human laws and laws of reality


instabram

Bram Adams

writer, programmer

Comments


Related Posts

Members Public

September 23 2022

stop delivering, if you want to make money, anyway

September 23 2022
Members Public

September 22 2023

the lies we tell ourselves about ourselves

September 22 2023
Members Public

September 21 2023

i declare war!

September 21 2023