Some updates to how the format looks
This commit is contained in:
parent
03f857379c
commit
740a0e2001
@ -29,11 +29,22 @@ async def get_ship(ship_name):
|
||||
.replace("400px", "1920px")
|
||||
)
|
||||
|
||||
ship_name_on_page = (
|
||||
soup.find("tr", {"class": "infobox-title"}).findNext("th").text
|
||||
)
|
||||
manufacturer = (
|
||||
soup.find("tr", {"class": "data-manufacturer"}).findNext("a").text
|
||||
)
|
||||
|
||||
embed.set_thumbnail(
|
||||
url="https://media.robertsspaceindustries.com/t0q21kbb3zrpt/source.png"
|
||||
)
|
||||
|
||||
embed.set_author(name="Info about the %s" % ship_name)
|
||||
embed.set_author(
|
||||
name="%s %s" % (manufacturer, ship_name_on_page),
|
||||
url="%s%s" % (wiki_url, wiki_ship_name),
|
||||
)
|
||||
|
||||
try:
|
||||
# ingame_price = (
|
||||
# soup.find("div", {"class": "data-buycost infobox-data infobox-col2"})
|
||||
|
Loading…
x
Reference in New Issue
Block a user