Skip to content

Instantly share code, notes, and snippets.

View shahidcsebd's full-sized avatar

Shahidujzaman Shahid shahidcsebd

View GitHub Profile
@shahidcsebd
shahidcsebd / ai_faq.py
Created February 25, 2022 04:29
AI Generated FAQ for a keyword
import openai
import random
def random_number():
number = random.randint(2, 4)
return number
def get_answer(question):
@shahidcsebd
shahidcsebd / get-amazon-serp.py
Created December 15, 2021 05:22
Search on Amazon with a Keyword and Get the Result Page
import requests
from bs4 import BeautifulSoup
search_keyword = input("Write a keyword to search on Amazon: ")
search_format = search_keyword.strip().replace(' ', '+')
make_url = 'https://www.amazon.com/s?k=' + search_format
print(make_url)
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36", "Referer": "https://www.amazon.com/"}