Aluko Kenny

All generations.

generate functionSat, 13 May 2023

A ai chatbot

def ai_chap(name, age, weight): print("Hello {name}, you are {age} years old and {weight}kg.".format(name = name, age = age, weight = weight)) ai_chap(22, "Jack", 80)

Python
View
generate functionSat, 13 May 2023

A ai chatbot

def chatbot(): user_text = input("How are you today?\n") if "good" in user_text: print("That's good to hear") else: print("oh no! that's not good") chatbot()

Python
View
generate functionSat, 13 May 2023

A ai chatbot

def chat(sentence): if 'hello' in sentence: return 'hello' elif 'how are you' in sentence: return 'I am good' else: return "I don't understand" chat('hello') chat('how are you') chat('I am good')

Python
View
generate functionSat, 13 May 2023

Ai bot that generates free sales to a affiliate link in 5 seconds

import time from selenium import webdriver driver = webdriver.Chrome() #opens google chrome driver.get("https://www.thetrustedinsight.com/investment-news/index") #open the link time.sleep(5) #waits 5 seconds driver.find_element_by_css_selector("a[href^='http://thetrustedinsight.go2cloud.org/aff_c?offer_id=1&aff_id=1017']").click() #finds the affiliate link and clicks it

Python
View
generate functionSat, 13 May 2023

An ai automatic sales bot

def automatic_sales_bot(sales_data): # if sales_data is not empty - go on if sales_data: # calculate the total sales total_sales = sum(sales_data) # calculate the average sales average_sales = total_sales / len(sales_data) # create a message using the total sales and average sales message = "Total Sales: {0}\nAverage Sales: {1}".format(total_sales, average_sales) # return the message return message else: return None

Python
View
generate functionSun, 14 May 2023

Ask the user to insert their referral link. Generate sales to that referral link.print successful when a sale is generated

#function that: Ask the user to insert their referral link. Generate sales to that referral link.print successful when a sale is generated def generate_sales(referral_link): print("Thank you for the referral link") print("Generating sales to", referral_link) print("Successful!") referral_link_from_user = input("Please enter your referral link") generate_sales(referral_link_from_user)

Python
View
generate functionSun, 14 May 2023

Ask the user to insert their referral link. Create the loop that would generate unlimited sales to that referral link.print successful when a sale is generated

def user_input(input_msg): while True: user_input = input(input_msg) if user_input: return user_input else: print('Input is required') def print_msg(msg): print(msg) def print_sales(msg): while True: print(msg) print_msg('Sale generated!') def main(): user_link = user_input('Please insert your referral link here: ') print_sales(user_link) main()

Python
View
generate functionTue, 23 May 2023

A Bitcoin generator

import random def get_bitcoin_hash(n): return ''.join(random.choice("abcdefghijklmnopqrstuvwxyz0123456789") for m in range(n)) get_bitcoin_hash(32)

Python
View
generate functionSat, 13 May 2023

An ai automatic sales bot for affiliate program

import random def getBuyLink(): link = "https://amzn.to/2K9L3mQ" return link def getReview(): reviews = ["This is a great product", "I love this product", "I would recommend this product"] return random.choice(reviews) def getSalesPitch(): salesPitch = ["Buy now", "Buy now", "Buy now"] return random.choice(salesPitch) def main(): total = 0 for i in range(1, 5): total = total + i print(total) print("\n") print(getBuyLink()) print(getReview()) print(getSalesPitch()) main()

Python
View
generate functionSat, 13 May 2023

An ai automatic sales bot for affiliate program

import time # Import the Time library def sells(name, budget, pictures_of_product, description, link): print("Hello "+ name +"." +" "+"As you know that amazon is the biggest online store in the world and provide us a affiliate program to join and earn money. If you want to earn money by doing affiliate program in amazon then please read this article.This article may be helpfull for you to earn money. " + budget + " is such a good amount to earn by doing affiliate program. If you dont have any product then you can buy any product from amazon and sell it on your facebook page or other social media. If you want to promote any product then you have to upload the product photos and product description and a link to the product and share it on your facebook page or other social media."+ pictures_of_product +" pictures are uploaded of the product and "+ description + " is a description of the product. " + link + " is the link of the product. If your friends like this product then they will buy it by click on this link and you will get your comission. Now i hope that you can earn money

Python
View
generate functionSat, 13 May 2023

Ai bot that generates free sales to a affiliate link in 5 seconds

def bot(): rand_int = random.randint(1, 10) if rand_int == 1: driver.get('https://www.amazon.com/Kindle-Paperwhite-Waterproof-Storage-Now/dp/B077PQRLGX/ref=sr_1_3?crid=1HD7XBV8Y0CAG&dchild=1&keywords=kindle+paperwhite&qid=1593801177&s=books&sprefix=kindle%2Cstripbooks%2C191&sr=1-3') elif rand_int == 2: driver.get('https://www.amazon.com/gp/product/B07B4L16ZF/ref=as_li_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B07B4L16ZF&linkCode=as2&tag=tylersaffili-20&linkId=0f3da7d9ea5d0b4c8c07611e

Python
View
generate functionSat, 13 May 2023

Sum and average of 5 numbers

def sum_and_avg(a, b, c, d, e): total = a + b + c + d + e avg = total / 5 return (total, avg) (s, a) = sum_and_avg(1, 2, 3, 4, 5) print("The sum is %d and the average is %f." % (s, a))

Python
View
generate functionSun, 14 May 2023

Create where the user would select the game they want to connect the bot to, ask for game Id create the auto headshot bot for that game

def create_bot(game_id, email, password): options = webdriver.ChromeOptions() options.add_argument('--ignore-certificate-errors') options.add_argument('--incognito') options.add_argument('--headless') driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver", chrome_options=options) driver.get("https://chat.whatsapp.com/invite/L7XfH7fjYfY5CwHwWnJ9Gd") sleep(10) search_box = driver.find_element_by_xpath('//*[@id="app"]/div/div/div[2]/div[1]/span/div/span/div/div[1]/div/label/input') sleep(2) search_box.send_keys(email) sleep(2) search_box = driver.find_element_by_xpath('//*[@id="

Python
View
generate functionSun, 14 May 2023

The loop that would generate unlimited sales and visitors in 5 seconds

def forever(): while True: num_visitors = yield 'number of visitors' num_sales = yield 'number of sales' print(num_visitors, num_sales) forever_generator = forever() next(forever_generator) # 'number of visitors' next(forever_generator) # 'number of sales' next(forever_generator) # 1 2 next(forever_generator) # 'number of visitors' next(forever_generator) # 'number of sales' next(forever_generator) # 3 4

Python
View
generate functionSun, 14 May 2023

An auto referral bot for referral link print successful with a green check mark and a x symbol when there is an error

from selenium import webdriver from time import sleep from secrets import pw class ReferralBot(): def __init__(self): self.driver = webdriver.Chrome() def login(self): self.driver.get("https://www.instagram.com") sleep(1) fb_btn = self.driver.find_element_by_xpath('//*[@id="react-root"]/section/main/article/div[2]/div[2]/p/a') fb_btn.click() sleep(1) # switch to login popup: base_window = self.driver.window_handles[0] self.driver.switch_to_window(self.driver.window_handles[1]) email_in = self.driver.find_element_by_xpath('//*[@id="email"]') email_in.send_keys('') pw_in = self.driver.find_element_by_xpath

Python
View
generate functionSun, 14 May 2023

An auto referral bot for referral link

import time import webbrowser refLink = 'https://www.google.com/' def autoReferral(): print('Press Ctrl-C to stop') i = 0 while True: webbrowser.open(refLink) i += 1 print('Referral link opened: ' + str(i) + ' times') time.sleep(0.5) autoReferral()

Python
View

Questions about programming?Chat with your personal AI assistant