Beispiel #1
0
def test_item_repr():
    from api.scrapers.item import scrape_item

    item = scrape_item('9139260df17')
    assert repr(
        item
    ) == '<Item lodestone_id=9139260df17 name=Aegis Shield Zeta type=Shield ilvl=135>'
Beispiel #2
0
 async def scrape_item_async(item_id):
     job.items.append(scrape_item(item_id))
Beispiel #3
0
def test_item_repr():
    from api.scrapers.item import scrape_item

    item = scrape_item("9139260df17")
    assert repr(item) == "<Item lodestone_id=9139260df17 name=Aegis Shield Zeta type=Shield ilvl=135>"
Beispiel #4
0
def thyrus():
    from api.scrapers.item import scrape_item

    return scrape_item("d19447e548d")
Beispiel #5
0
def thyrus():
    from api.scrapers.item import scrape_item
    return scrape_item('d19447e548d')
Beispiel #6
0
def get_item(lodestone_id):
    if not re.match(r'^[0-9a-z]+$', lodestone_id):
        raise InvalidRequest('Illegal characters in requested ID')

    return scrape_item(lodestone_id)
Beispiel #7
0
def get_item(lodestone_id):
    if not re.match(r'^[0-9a-z]+$', lodestone_id):
        raise InvalidRequest('Illegal characters in requested ID')

    return scrape_item(lodestone_id)