Skip to content

Instantly share code, notes, and snippets.

#facebook marketplace
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from pymongo import MongoClient
class App:
@peterdotwin
peterdotwin / crawlorders.py
Created April 21, 2024 22:21 — forked from wgaggioli/crawlorders.py
Crawls your amazon order history for a given year and sums the amount of sales tax you paid
import random
import re
import time
from bs4 import BeautifulSoup
from bs4.element import Tag
from cookielib import split_header_words
import requests
@peterdotwin
peterdotwin / description_image_products.py
Created April 21, 2024 21:46 — forked from yadavmanoj354/description_image_products.py
A simple LLM Application that takes product name as input and generates a short description about the product and later scraps images related to same using web.
# generate text using different LLM models
from langchain import PromptTemplate, LLMChain
from langchain import HuggingFaceHub
import os
import pandas as pd
from langchain.vectorstores import Chroma
from langchain.chains.question_answering import load_qa_chain
import requests
@peterdotwin
peterdotwin / ebay_scraper.py
Created April 21, 2024 18:32 — forked from scrapehero/ebay_scraper.py
Python 3 Code to scrape prices from ebay.com
import argparse
from pprint import pprint
from traceback import format_exc
import requests
import unicodecsv as csv
from lxml import html
def parse(brand):