woctezuma / steam-market

Find arbitrages on the Steam Market.
MIT License
158 stars 17 forks source link

Question for modifing the header #58

Closed kenny99k closed 7 months ago

kenny99k commented 7 months ago

header

I want to ask how to find the optimal header value for my environement, it seems I am getting heavily blocked even with cookie, and I am suspecting the header

my cookie format

  "browserid": "PASTE_YOUR_COOKIE_VALUE_HERE",
  "sessionid": "PASTE_YOUR_COOKIE_VALUE_HERE",
  "steamLoginSecure": "PASTE_YOUR_COOKIE_VALUE_HERE"

and I have the following issue occuring (but it does not stop the program from running), is it due to format change from return data? (ran python market_arbitrage.py)

<unknown>:1: SyntaxWarning: invalid escape sequence '\/'
Item type not found for 1062830-Embr Booster Pack

It is a good project, thanks in advance

woctezuma commented 7 months ago

it seems I am getting heavily blocked even with cookie

Usually, it is one of the cookie values which has to be updated, probably the sessionid.

Moreover, I don't know if you are logged on the same account with other instances (ASF, browser, Steam client). If this is the case, maybe you could stop the ASF bot, close the browser and the Steam client during the run of the Python script. Or at least, I believe that limiting the number of places from where you are logged may help to avoid a change of the sessionid during a run.

Otherwise, you may fiddle with the header, but it is trial-and-error until it works, and rate-limits are a huge hindrance for this step.

:1: SyntaxWarning: invalid escape sequence '\/'

I don't believe that this is an issue. I have never investigated much, as I don't know where exactly the warning comes from.

Item type not found for 1062830-Embr Booster Pack

This should not be an issue for booster packs. However, for foil cards, this can hint that the estimation of the goo value is wrong. Unfortunately, I have not found a reliable method to figure out the item_type of a trading card. cf. the code below

https://github.com/woctezuma/steam-market/blob/00ead60246cb3735a8fa1e69fe04ec6e0c593043/src/market_foil_utils.py#L30

kenny99k commented 7 months ago

I seems to find out the cause, I open too many steam tabs on chrome. The program works fine after without opening any broswer

But when I see the result, I find out some profitable pack (from my game library) is missing, is it due to I have not added gem info to booster_game_creator_from_javascript.txt?

And is there any smart way for doing it? Take apex legend pack for example booster pack creator for apex

I see the code have retrived booster pack app id, I wonder is it possible to fetch gem values directly from booster pack creator page?

woctezuma commented 7 months ago

But when I see the result, I find out some profitable pack (from my game library) is missing, is it due to I have not added gem info to booster_game_creator_from_javascript.txt?

Yes, you need to paste your info into this txt file.

I see the code have retrieved booster pack app id, I wonder is it possible to fetch gem values directly from booster pack creator page?

Yes, this is how it is done.

And is there any smart way for doing it? Take apex legend pack for example booster pack creator for apex

That being said, Apex is already in the default txt file. It is missing because it is not profitable at all. The ask is at 0.07 €, the bid at 0.06 €, and crafting a pack costs 750 gems, which is nearly 0.23 € if a sack costs 0.30 €. See:

Apex

Sack

kenny99k commented 7 months ago

so there is no smart way for adding my own game library gem info and I have to add them one by one?

woctezuma commented 7 months ago

so there is no smart way for adding my own game library gem info and I have to add them one by one?

See https://github.com/woctezuma/steam-market?tab=readme-ov-file#gem-cost-for-crafting-booster-packs

Procedure