Example #1
0
def reviewtest(sites):
    Product = namedtuple("product", "website, pid, brand")
    Engine = namedtuple("Engine", "browser, s, e")
    RapidWrinkle = {
        "amazon": Product("amazon", "B004D2C57M", "Neutrogena"),
        "drugstore": Product("drugstore", "qxp344205", "Neutrogena"),
        "walmart": Product("walmart", "15747280", "Neutrogena"),
    }
    for i in sites:
        product = RapidWrinkle[i]
        t = timerstart()
        browser = "Chrome"
        s, e = class_chooser(product.website)
        engine = Engine(browser, s(), e())
        download(product, engine)
        timerend(t)
Example #2
0
        data.brand_affinity,
        data.review_short,
        data.star_value,
        data.kw_pros,
        data.kw_cons,
        data.kw_best,
        data.review_list,
    )

    # save data
    save.create_xml(neo, product.pid, product.website, product.brand, name, size, units, ingredients)


# start the clock

t = timerstart()

# setup
browser = "Chrome"

# objects
Product = namedtuple("product", "website, pid, brand")
Engine = namedtuple("Engine", "browser, s, e")

# user input
website, pid = link_input()
brand = brand_input()
s, e = class_chooser(website)

# tuple instanciation
product = Product(website, pid, brand)