Hari-Nagarajan / fairgame

Tool to help us buy hard to find items.
GNU General Public License v3.0
2.44k stars 805 forks source link

With some ASINS I get an error, this is due to the bot adding ‎ to the start of some ASINS in the URL. #809

Closed vezzela closed 3 years ago

vezzela commented 3 years ago

{ "asin_groups": 1, "asin_list_1": ["‎‎B08L8L9TCZ"], "reserve_min_1": 500, "reserve_max_1": 1000, "amazon_website": "smile.amazon.com" }

If I use this ASIN ill get thrown to this page: https://smile.amazon.com/dp/‎B08L8L9TCZ Instead of just: https://smile.amazon.com/dp/B08L8L9TCZ

it only does these for a few ASINS, I do not know what the issue is, why is it adding ‎ to the start of the ASIN on the url?

SalvadorSTM commented 3 years ago

Why are random characters (e.g., ‎) showing up in the URL when the bot is doing a stock check? Is the bot broken??

The random characters are showing up because you added them to the config file from wherever you copied the ASIN from. What? You are saying you didn’t add them to the config file? If you change the encoding in your text editor to ANSI they will show up. In UTF-8 encoding that is encoded as “left-to-right mark”, which is not a visible character in UTF-8. To fix this, delete the ASIN, including the brackets, and retype it manually (or switch to ANSI encoding and delete the extra characters). image