1 (изменено: sememix, 2017-09-16 18:22:16)

Тема: AHK: Выделить цену из текста с помощью регулярного выражения

Получаю HTML код по ссылке, нужно выразить цену из строки и преобразовать её в число, для дальнейших математический операций.
Строка из которой нужно вытащить цену:

<span class="normal_price">$0.07 USD</span>

Функция получения HTML кода:

QueryResponseWebsite(url)
{
	HttpObj := ComObjCreate("WinHttp.WinHttpRequest.5.1")
	ComObjError(false)
	HttpObj.Open("GET", Url) 
	HttpObj.Send()	
	HttpObj.WaitForResponse()
	return HttpObj.ResponseText
}

Пример ссылки для запроса: http://steamcommunity.com/market/search … ;appid=753.

2

Re: AHK: Выделить цену из текста с помощью регулярного выражения

str = <span class="normal_price">$0.07 USD</span>
MsgBox, % price := RegExReplace(str, ".*\$([0-9.]+).*", "$1")
MsgBox, % price*2

Так?

Разработка AHK-скриптов:
e-mail dfiveg@mail.ru
Skype dmitry_fiveg

3

Re: AHK: Выделить цену из текста с помощью регулярного выражения

В ответ приходит приблизетельно такая информация:

+ открыть спойлер

<!DOCTYPE html>
<html class=" responsive" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="theme-color" content="#171a21">
<title>Steam Community Market :: Showing results for: Steam, app_394540, Normal, Trading Card</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/motiva_sans.css?v=Sd0odMs2NjL1" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/buttons.css?v=FMXZx9fv9yp_" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/shared_global.css?v=ezCZ54xw7bxo" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/globalv2.css?v=3X1Hz39cVBqV" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/economy.css?v=q6EkkWwqjgQx" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/economy_market.css?v=QrxQA0ehAQbn" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/html5.css?v=.MtSlvoLZL0Tb" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/shared/css/shared_responsive.css?v=Dm6dKxyudx2Y" rel="stylesheet" type="text/css" >
<link href="http://steamcommunity-a.akamaihd.net/public/css/skin_1/header.css?v=tZYBxDBV1D4c" rel="stylesheet" type="text/css" >
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-33779068-1', 'auto', {
'sampleRate': 0.4 });
ga('set', 'dimension1', false );
ga('set', 'dimension2', 'External' );
ga('set', 'dimension3', 'market' );
ga('set', 'dimension4', "market\/search" );
ga('send', 'pageview');

</script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/prototype-1.7.js?v=.55t44gwuwgvw" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/scriptaculous/_combined.js?v=9XVsa_Ni33oN&amp;l=english&amp;load=effects,controls,slider,dragdrop" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/global.js?v=FOZ8PR9YQrt_&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/jquery-1.11.1.min.js?v=.isFTSRckeNhC" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/shared/javascript/tooltip.js?v=.gcRSUfx-SLlh" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/shared/javascript/shared_global.js?v=AiRJ4Ock7jbc&amp;l=english" ></script>
<script type="text/javascript">$J = jQuery.noConflict();
if ( typeof JSON != 'object' || !JSON.stringify || !JSON.parse ) { document.write( "<scr" + "ipt type=\"text\/javascript\" src=\"http:\/\/steamcommunity-a.akamaihd.net\/public\/javascript\/json2.js?v=pmScf4470EZP&amp;l=english\" ><\/script>\n" ); };
</script><script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/economy_common.js?v=tsXdRVB0yEaR&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/economy.js?v=jsMHcqsTyBbv&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/market.js?v=j8zjMwxvejTH&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/modalv2.js?v=dfMhuy-Lrpyo&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/javascript/modalContent.js?v=_GJo7RLtKayG&amp;l=english" ></script>
<script type="text/javascript" src="http://steamcommunity-a.akamaihd.net/public/shared/javascript/shared_responsive_adapter.js?v=qLEcRmcHn-kc&amp;l=english" ></script>


<meta property="fb:app_id" content="105386699540688">


<link rel="image_src" href="http://steamcommunity-a.akamaihd.net/public/shared/images/responsive/share_steam_logo.png">
<meta property="og:image" content="http://steamcommunity-a.akamaihd.net/public/shared/images/responsive/share_steam_logo.png">
<meta property="og:image:secure" content="https://steamcommunity-a.akamaihd.net/public/shared/images/responsive/share_steam_logo.png">



</head>
<body class=" responsive_page">

<div class="responsive_page_frame with_header">

<div class="responsive_page_menu_ctn mainmenu">
<div class="responsive_page_menu"  id="responsive_page_menu">
<div class="mainmenu_contents">
<div class="mainmenu_contents_items">
<a class="menuitem" href="https://steamcommunity.com/login/home/?goto=market%2Fsearch%3Fcategory_753_Game%255B%255D%3Dtag_app_394540%26category_753_cardborder%255B%255D%3Dtag_cardborder_0%26category_753_item_class%255B%255D%3Dtag_item_class_2%26appid%3D753">
Login </a>

<a class="menuitem supernav" href="http://store.steampowered.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_store">
Store </a>
<div class="submenu_store" style="display: none;" data-submenuid="store">
<a class="submenuitem" href="http://store.steampowered.com/">Featured</a>
<a class="submenuitem" href="http://store.steampowered.com/explore/">Explore</a>
<a class="submenuitem" href="http://store.steampowered.com/curators/">Curators</a>
<a class="submenuitem" href="http://steamcommunity.com/my/wishlist/">Wishlist</a>
<a class="submenuitem" href="http://store.steampowered.com/news/">News</a>
<a class="submenuitem" href="http://store.steampowered.com/stats/">Stats</a>
</div>


<a class="menuitem supernav" style="display: block" href="http://steamcommunity.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_community">
Community </a>
<div class="submenu_community" style="display: none;" data-submenuid="community">
<a class="submenuitem" href="http://steamcommunity.com/">Home</a>
<a class="submenuitem" href="http://steamcommunity.com/discussions/">Discussions</a>
<a class="submenuitem" href="http://steamcommunity.com/workshop/">Workshop</a>
<a class="submenuitem" href="http://steamcommunity.com/market/">Market</a>
<a class="submenuitem" href="http://steamcommunity.com/?subsection=broadcasts">Broadcasts</a>
</div>





<a class="menuitem" href="https://help.steampowered.com/en/">
Support </a>

<div class="minor_menu_items">
<div class="menuitem change_language_action">
Change language </div>
<div class="menuitem" onclick="Responsive_RequestDesktopView();">
View desktop website </div>
</div>
</div>
<div class="mainmenu_footer_spacer"></div>
<div class="mainmenu_footer">
<div class="mainmenu_footer_logo"><img src="http://steamcommunity-a.akamaihd.net/public/shared/images/responsive/logo_valve_footer.png"></div>
© Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries. <span class="mainmenu_valve_links">
<a href="http://store.steampowered.com/privacy_agreement/" target="_blank">Privacy Policy</a>
&nbsp;| &nbsp;<a href="http://www.valvesoftware.com/legal.htm" target="_blank">Legal</a>
&nbsp;| &nbsp;<a href="http://store.steampowered.com/subscriber_agreement/" target="_blank">Steam Subscriber Agreement</a>
&nbsp;| &nbsp;<a href="http://store.steampowered.com/steam_refunds/" target="_blank">Refunds</a>
</span>
</div>
</div>
</div>
</div>

<div class="responsive_local_menu_tab">

</div>

<div class="responsive_page_menu_ctn localmenu">
<div class="responsive_page_menu"  id="responsive_page_local_menu">
<div class="localmenu_content">
</div>
</div>
</div>



<div class="responsive_header">
<div class="responsive_header_content">
<div id="responsive_menu_logo">
<img src="http://steamcommunity-a.akamaihd.net/public/shared/images/responsive/header_menu_hamburger.png" height="100%">
</div>
<div class="responsive_header_logo">
<img src="http://steamcommunity-a.akamaihd.net/public/shared/images/responsive/header_logo.png" height="36" border="0" alt="STEAM">
</div>
</div>
</div>

<div class="responsive_page_content_overlay">

</div>

<div class="responsive_fixonscroll_ctn nonresponsive_hidden ">
</div>

<div class="responsive_page_content">

<div id="global_header">
<div class="content">

<div class="logo">
<span id="logo_holder">
<a href="http://store.steampowered.com/">
<img src="http://steamcommunity-a.akamaihd.net/public/shared/images/header/globalheader_logo.png?t=962016" width="176" height="44">
</a>
</span>
<!--[if lt IE 7]>
<style type="text/css">
#logo_holder img { filter:progid:DXImageTransform.Microsoft.Alpha(opacity=0); }
#logo_holder { display: inline-block; width: 176px; height: 44px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://steamcommunity-a.akamaihd.net/public/images/v5/globalheader_logo.png'); }
</style>
<![endif]-->
</div>

<div class="supernav_container">
<a class="menuitem supernav" href="http://store.steampowered.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_store">
STORE </a>
<div class="submenu_store" style="display: none;" data-submenuid="store">
<a class="submenuitem" href="http://store.steampowered.com/">Featured</a>
<a class="submenuitem" href="http://store.steampowered.com/explore/">Explore</a>
<a class="submenuitem" href="http://store.steampowered.com/curators/">Curators</a>
<a class="submenuitem" href="http://steamcommunity.com/my/wishlist/">Wishlist</a>
<a class="submenuitem" href="http://store.steampowered.com/news/">News</a>
<a class="submenuitem" href="http://store.steampowered.com/stats/">Stats</a>
</div>


<a class="menuitem supernav" style="display: block" href="http://steamcommunity.com/" data-tooltip-type="selector" data-tooltip-content=".submenu_community">
COMMUNITY </a>
<div class="submenu_community" style="display: none;" data-submenuid="community">
<a class="submenuitem" href="http://steamcommunity.com/">Home</a>
<a class="submenuitem" href="http://steamcommunity.com/discussions/">Discussions</a>
<a class="submenuitem" href="http://steamcommunity.com/workshop/">Workshop</a>
<a class="submenuitem" href="http://steamcommunity.com/market/">Market</a>
<a class="submenuitem" href="http://steamcommunity.com/?subsection=broadcasts">Broadcasts</a>
</div>




<a class="menuitem" href="http://store.steampowered.com/about/">
ABOUT </a>

<a class="menuitem" href="https://help.steampowered.com/en/">
SUPPORT </a>
</div>
<script type="text/javascript">
jQuery(function($) {
$('.tooltip').v_tooltip();
$('#global_header .supernav').v_tooltip({'location':'bottom', 'tooltipClass': 'supernav_content', 'offsetY':-4, 'offsetX': 1, 'horizontalSnap': 4, 'tooltipParent': '#global_header .supernav_container', 'correctForScreenSize': false});
});
</script>

<div id="global_actions">
<div id="global_action_menu">
<div class="header_installsteam_btn header_installsteam_btn_green">
<div class="header_installsteam_btn_leftcap"></div>
<div class="header_installsteam_btn_rightcap"></div>
<a class="header_installsteam_btn_content" href="http://store.steampowered.com/about/">
Install Steam </a>
</div>


<a class="global_action_link" href="https://steamcommunity.com/login/home/?goto=market%2Fsearch%3Fcategory_753_Game%255B%255D%3Dtag_app_394540%26category_753_cardborder%255B%255D%3Dtag_cardborder_0%26category_753_item_class%255B%255D%3Dtag_item_class_2%26appid%3D753">login</a>
&nbsp;|&nbsp;
<span class="pulldown global_action_link" id="language_pulldown" onclick="ShowMenu( this, 'language_dropdown', 'right' );">language</span>
<div class="popup_block_new" id="language_dropdown" style="display: none;">
<div class="popup_body popup_menu">
<a class="popup_menu_item tight" href="?l=bulgarian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'bulgarian' ); return false;">Български (Bulgarian)</a>
<a class="popup_menu_item tight" href="?l=czech&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'czech' ); return false;">cestina (Czech)</a>
<a class="popup_menu_item tight" href="?l=danish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'danish' ); return false;">Dansk (Danish)</a>
<a class="popup_menu_item tight" href="?l=dutch&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'dutch' ); return false;">Nederlands (Dutch)</a>
<a class="popup_menu_item tight" href="?l=finnish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'finnish' ); return false;">Suomi (Finnish)</a>
<a class="popup_menu_item tight" href="?l=french&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'french' ); return false;">Francais (French)</a>
<a class="popup_menu_item tight" href="?l=german&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'german' ); return false;">Deutsch (German)</a>
<a class="popup_menu_item tight" href="?l=greek&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'greek' ); return false;">???????? (Greek)</a>
<a class="popup_menu_item tight" href="?l=hungarian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'hungarian' ); return false;">Magyar (Hungarian)</a>
<a class="popup_menu_item tight" href="?l=italian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'italian' ); return false;">Italiano (Italian)</a>
<a class="popup_menu_item tight" href="?l=japanese&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'japanese' ); return false;">??? (Japanese)</a>
<a class="popup_menu_item tight" href="?l=koreana&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'koreana' ); return false;">??? (Korean)</a>
<a class="popup_menu_item tight" href="?l=norwegian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'norwegian' ); return false;">Norsk (Norwegian)</a>
<a class="popup_menu_item tight" href="?l=polish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'polish' ); return false;">Polski (Polish)</a>
<a class="popup_menu_item tight" href="?l=portuguese&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'portuguese' ); return false;">Portugues (Portuguese)</a>
<a class="popup_menu_item tight" href="?l=brazilian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'brazilian' ); return false;">Portugues-Brasil (Portuguese-Brazil)</a>
<a class="popup_menu_item tight" href="?l=romanian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'romanian' ); return false;">Romana (Romanian)</a>
<a class="popup_menu_item tight" href="?l=russian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'russian' ); return false;">Русский (Russian)</a>
<a class="popup_menu_item tight" href="?l=schinese&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'schinese' ); return false;">???? (Simplified Chinese)</a>
<a class="popup_menu_item tight" href="?l=spanish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'spanish' ); return false;">Espanol (Spanish)</a>
<a class="popup_menu_item tight" href="?l=swedish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'swedish' ); return false;">Svenska (Swedish)</a>
<a class="popup_menu_item tight" href="?l=tchinese&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'tchinese' ); return false;">???? (Traditional Chinese)</a>
<a class="popup_menu_item tight" href="?l=thai&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'thai' ); return false;">??? (Thai)</a>
<a class="popup_menu_item tight" href="?l=turkish&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'turkish' ); return false;">Turkce (Turkish)</a>
<a class="popup_menu_item tight" href="?l=ukrainian&category_753_Game%5B0%5D=tag_app_394540&category_753_cardborder%5B0%5D=tag_cardborder_0&category_753_item_class%5B0%5D=tag_item_class_2&appid=753" onclick="ChangeLanguage( 'ukrainian' ); return false;">Українська (Ukrainian)</a>
<a class="popup_menu_item tight" href="http://translation.steampowered.com" target="_blank">Help us translate Steam</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
g_sessionID = "95faacf0adca559b3e5d6786";
g_steamID = false;

// We always want to have the timezone cookie set for PHP to use
setTimezoneCookies();

$J( function() {

InitMiniprofileHovers();
InitEmoticonHovers();
window.BindCommunityTooltip = function( $Selector ) { $Selector.v_tooltip( {'tooltipClass': 'community_tooltip', 'dataName': 'communityTooltip' } ); };
BindCommunityTooltip( $J('[data-community-tooltip]') );
});

$J( function() { InitEconomyHovers( "http:\/\/steamcommunity-a.akamaihd.net\/public\/css\/skin_1\/economy.css?v=q6EkkWwqjgQx", "http:\/\/steamcommunity-a.akamaihd.net\/public\/javascript\/economy_common.js?v=tsXdRVB0yEaR&l=english", "http:\/\/steamcommunity-a.akamaihd.net\/public\/javascript\/economy.js?v=jsMHcqsTyBbv&l=english" );});</script>
<div class="responsive_page_template_content">

<style>
#sideBar > div {
margin-top: 0;
margin-bottom: 2em;
}
.market_page_left {
padding-top: 0;
}
</style>
<div class="pagecontent no_header ">
<!-- top content -->
<div id="modalContentScrollbarHack" style="display: none"></div>

<div id="modalContent" class="modal_frame" style="display: none">
<div id="modalContentTitleBar">
<a id="modalContentTitleBarLink" href="" target="_blank">&nbsp;</a>
<a id="modalContentTitleBarImageLink" href="" target="_blank"><img src="http://steamcommunity-a.akamaihd.net/public/images/skin_1/ico_external_link.gif" alt=""></a>
<div id="modalContentDismiss" class="modalContentDismissImage" onclick="HideModalContent();">
<img src="http://steamcommunity-a.akamaihd.net/public/images/x9x9.gif" width="9" height="9" border="0" alt="Close">
</div>
</div>
<div id="modalContentWait"><img src="http://steamcommunity-a.akamaihd.net/public/images/login/throbber.gif" alt="Loading"></div>
<div id="modalContentFrameContainer"></div>
</div><div class="market_header_bg">
<div id="BG_top">
<h1 class="market_header">
<a href="http://steamcommunity.com/market/">
<div class="market_header_logo">
<div class="market_header_text">
<span class="market_title_text">Community Market</span><br/>
<span class="market_subtitle_text">Buy and sell items with community members for Steam Wallet funds.</span>
</div>
</div>
<!--<img class="market_header_logo" src="http://steamcommunity-a.akamaihd.net/public/images/economy/market/header/header_en.png" alt="Steam Community Market" /> -->
</a>
</h1>
<div class="market_header_hidden">
<p>Buy and sell items with community members for Steam Wallet funds.</p>
</div>


</div>
</div>



<!-- /top content -->
<!-- main body -->
<div id="BG_bottom">
<div class="market_search_results_header">
<h2 class="market_search_results_title">Showing results for:</h2>
<div style="display: inline-block; margin: 10px 0;">
<a href="http://steamcommunity.com/market/search?category_753_Game%5B0%5D=tag_app_394540&amp;category_753_cardborder%5B0%5D=tag_cardborder_0&amp;category_753_item_class%5B0%5D=tag_item_class_2" class="market_searchedForTerm">
<img src="http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/753/135dc1ac1cd9763dfc8ad52f4e880d2ac058a36c.jpg" alt="">Steam<span class="removeIcon"></span> </a>
<a href="http://steamcommunity.com/market/search?category_753_cardborder%5B0%5D=tag_cardborder_0&amp;category_753_item_class%5B0%5D=tag_item_class_2&amp;appid=753" class="market_searchedForTerm">
app_394540<span class="removeIcon"></span> </a>
<a href="http://steamcommunity.com/market/search?category_753_Game%5B0%5D=tag_app_394540&amp;category_753_item_class%5B0%5D=tag_item_class_2&amp;appid=753" class="market_searchedForTerm">
Normal<span class="removeIcon"></span> </a>
<a href="http://steamcommunity.com/market/search?category_753_Game%5B0%5D=tag_app_394540&amp;category_753_cardborder%5B0%5D=tag_cardborder_0&amp;appid=753" class="market_searchedForTerm">
Trading Card<span class="removeIcon"></span> </a>

<a href="http://steamcommunity.com/market/search?q=">Clear all</a>
</div>
</div>
<div id="mainContents">
<div id="sideBar">
<div id="findItems">
<div class="market_search_sidebar_contents">
<span class="market_search_sidebar_section_tip_small">
Search for Items </span>
<div class="market_search_box_container">
<form id="market_search" accept-charset="UTF8" action="http://steamcommunity.com/market/search" method="GET" >
<input type="hidden" name="category_753_Game[]" value="tag_app_394540"/><input type="hidden" name="category_753_cardborder[]" value="tag_cardborder_0"/><input type="hidden" name="category_753_item_class[]" value="tag_item_class_2"/><input type="hidden" name="appid" value="753"/> <span class="market_search_sidebar_search_box market_search_input_container">
<span>
<input class="" type="text" id="findItemsSearchBox" value="" placeholder="Search" name="q" autocomplete="off" tabindex="1" />
<input class="market_search_submit_button" id="findItemsSearchSubmit" type="submit" value="Submit" tabindex="3" />
</span>
</span>
<div class="market_search_input_container">
<div id="market_search_advanced_show" onclick="ShowAdvancedSearchOptions();">
<div class="market_search_advanced_button">
<span>Show advanced options...</span>
<span class="btn_details_arrow down" ></span>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div id="searchResults" class="market_page_left">
<div id="searchResultsTable" class="market_content_block market_home_listing_table market_home_main_listing_table market_listing_table market_listing_table_active">
<div id="searchResultsRows">
<div class="market_listing_table_header">
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_their_price market_sortable_column" data-sorttype="price">PRICE<span class="market_sort_arrow" style="display:none;"></span></div>
<div class="market_listing_right_cell market_listing_num_listings market_sortable_column" data-sorttype="quantity">QUANTITY<span class="market_sort_arrow" style="display:none;"></span></div>
<div class="market_listing_right_cell market_listing_price_listings_combined market_sortable_column" data-sorttype="price">PRICE<span class="market_sort_arrow" style="display:none;"></span></div>
</div>
<div class="market_sortable_column" data-sorttype="name"><span class="market_listing_header_namespacer"></span>NAME<span class="market_sort_arrow" style="display:none;"></span></div>
</div>

<a class="market_listing_row_link" href="http://steamcommunity.com/market/listings/753/394540-Mayor" id="resultlink_0">
<div class="market_listing_row market_recent_listing_row market_listing_searchresult" id="result_0">
<img id="result_0_image" src="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QTirvDLFXn2bzKZeXaNGl0_SeVYNj7frDamtuvHR2ubE-okRgoNdfcMoGEda8qLOhRp0JlLpWL-lUtvGhM6TcxLcQi-l3VFZ74jnSBGdpJTnSCjIZDZ1F9nOxJsX73lU7nFa9Skwy91XBM1GPYEJNXCrmPh-cE-9wqZ/62fx62f" srcset="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QTirvDLFXn2bzKZeXaNGl0_SeVYNj7frDamtuvHR2ubE-okRgoNdfcMoGEda8qLOhRp0JlLpWL-lUtvGhM6TcxLcQi-l3VFZ74jnSBGdpJTnSCjIZDZ1F9nOxJsX73lU7nFa9Skwy91XBM1GPYEJNXCrmPh-cE-9wqZ/62fx62f 1x, http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QTirvDLFXn2bzKZeXaNGl0_SeVYNj7frDamtuvHR2ubE-okRgoNdfcMoGEda8qLOhRp0JlLpWL-lUtvGhM6TcxLcQi-l3VFZ74jnSBGdpJTnSCjIZDZ1F9nOxJsX73lU7nFa9Skwy91XBM1GPYEJNXCrmPh-cE-9wqZ/62fx62fdpx2x 2x" style="" class="market_listing_item_img" alt="" />
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_num_listings">
<span class="market_table_value">
<span class="market_listing_num_listings_qty">305</span>
</span>
</div>
<div class="market_listing_right_cell market_listing_their_price">
<span class="market_table_value normal_price">
Starting at:<br/>
<span class="normal_price">$0.05 USD</span>
<span class="sale_price">$0.04 USD</span>
</span>
<span class="market_arrow_down" style="display: none"></span>
<span class="market_arrow_up" style="display: none"></span>
</div>
</div>

<div class="market_listing_item_name_block">
<span id="result_0_name" class="market_listing_item_name" style="color: #;">Mayor</span>
<br/>
<span class="market_listing_game_name">Spaceport Hope Trading Card</span>
</div>
<div style="clear: both"></div>
</div>
</a>

<a class="market_listing_row_link" href="http://steamcommunity.com/market/listings/753/394540-Female%20Citizen" id="resultlink_1">
<div class="market_listing_row market_recent_listing_row market_listing_searchresult" id="result_1">
<img id="result_1_image" src="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b5gD2oO6IV1f-fD7eKi-fFVNpGuZTPGrc-zD04bmQFjqaF-56F1sDL6FR8zIcPpqJaxo90INY-zDqwkEoSlg4fMIAcgCpznEBDrQoySYXeMpUn3emI8XdhlZjbEI5XbznB7zHPNWjlSomWB9gG_UbN4vEuSy-_8HvKqnRO746ZXKJ50Gq/62fx62f" srcset="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b5gD2oO6IV1f-fD7eKi-fFVNpGuZTPGrc-zD04bmQFjqaF-56F1sDL6FR8zIcPpqJaxo90INY-zDqwkEoSlg4fMIAcgCpznEBDrQoySYXeMpUn3emI8XdhlZjbEI5XbznB7zHPNWjlSomWB9gG_UbN4vEuSy-_8HvKqnRO746ZXKJ50Gq/62fx62f 1x, http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b5gD2oO6IV1f-fD7eKi-fFVNpGuZTPGrc-zD04bmQFjqaF-56F1sDL6FR8zIcPpqJaxo90INY-zDqwkEoSlg4fMIAcgCpznEBDrQoySYXeMpUn3emI8XdhlZjbEI5XbznB7zHPNWjlSomWB9gG_UbN4vEuSy-_8HvKqnRO746ZXKJ50Gq/62fx62fdpx2x 2x" style="" class="market_listing_item_img" alt="" />
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_num_listings">
<span class="market_table_value">
<span class="market_listing_num_listings_qty">351</span>
</span>
</div>
<div class="market_listing_right_cell market_listing_their_price">
<span class="market_table_value normal_price">
Starting at:<br/>
<span class="normal_price">$0.05 USD</span>
<span class="sale_price">$0.04 USD</span>
</span>
<span class="market_arrow_down" style="display: none"></span>
<span class="market_arrow_up" style="display: none"></span>
</div>
</div>

<div class="market_listing_item_name_block">
<span id="result_1_name" class="market_listing_item_name" style="color: #;">Female Citizen</span>
<br/>
<span class="market_listing_game_name">Spaceport Hope Trading Card</span>
</div>
<div style="clear: both"></div>
</div>
</a>

<a class="market_listing_row_link" href="http://steamcommunity.com/market/listings/753/394540-Seth" id="resultlink_2">
<div class="market_listing_row market_recent_listing_row market_listing_searchresult" id="result_2">
<img id="result_2_image" src="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b8wDvqaSEEXXwbWqSLHSLSwxtSbZZY2CL-Tqt4LvFSj7PSe0qR1gNdKYE9jIbPsrfPBI6ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijtAhpXvmA/62fx62f" srcset="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b8wDvqaSEEXXwbWqSLHSLSwxtSbZZY2CL-Tqt4LvFSj7PSe0qR1gNdKYE9jIbPsrfPBI6ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijtAhpXvmA/62fx62f 1x, http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b8wDvqaSEEXXwbWqSLHSLSwxtSbZZY2CL-Tqt4LvFSj7PSe0qR1gNdKYE9jIbPsrfPBI6ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijtAhpXvmA/62fx62fdpx2x 2x" style="" class="market_listing_item_img" alt="" />
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_num_listings">
<span class="market_table_value">
<span class="market_listing_num_listings_qty">248</span>
</span>
</div>
<div class="market_listing_right_cell market_listing_their_price">
<span class="market_table_value normal_price">
Starting at:<br/>
<span class="normal_price">$0.07 USD</span>
<span class="sale_price">$0.06 USD</span>
</span>
<span class="market_arrow_down" style="display: none"></span>
<span class="market_arrow_up" style="display: none"></span>
</div>
</div>

<div class="market_listing_item_name_block">
<span id="result_2_name" class="market_listing_item_name" style="color: #;">Seth</span>
<br/>
<span class="market_listing_game_name">Spaceport Hope Trading Card</span>
</div>
<div style="clear: both"></div>
</div>
</a>

<a class="market_listing_row_link" href="http://steamcommunity.com/market/listings/753/394540-Hero" id="resultlink_3">
<div class="market_listing_row market_recent_listing_row market_listing_searchresult" id="result_3">
<img id="result_3_image" src="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b6ADprqSEEXXwbWrBeySMSVo-SOJYZG7Z_zD2t-_HRz7OFOArQw9Qe6JW8GJINJyNaxM9ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijt-ugsTuw/62fx62f" srcset="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b6ADprqSEEXXwbWrBeySMSVo-SOJYZG7Z_zD2t-_HRz7OFOArQw9Qe6JW8GJINJyNaxM9ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijt-ugsTuw/62fx62f 1x, http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b6ADprqSEEXXwbWrBeySMSVo-SOJYZG7Z_zD2t-_HRz7OFOArQw9Qe6JW8GJINJyNaxM9ysdVrCO6mFZ5GwQXe8hHdwrmyyJFMrtwyXVBfJpWnXf3IpSIhVoxPEBvX7riU7vGOoD2kH4lVEhgSb5aOtyD_ijt-ugsTuw/62fx62fdpx2x 2x" style="" class="market_listing_item_img" alt="" />
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_num_listings">
<span class="market_table_value">
<span class="market_listing_num_listings_qty">229</span>
</span>
</div>
<div class="market_listing_right_cell market_listing_their_price">
<span class="market_table_value normal_price">
Starting at:<br/>
<span class="normal_price">$0.08 USD</span>
<span class="sale_price">$0.07 USD</span>
</span>
<span class="market_arrow_down" style="display: none"></span>
<span class="market_arrow_up" style="display: none"></span>
</div>
</div>

<div class="market_listing_item_name_block">
<span id="result_3_name" class="market_listing_item_name" style="color: #;">Hero</span>
<br/>
<span class="market_listing_game_name">Spaceport Hope Trading Card</span>
</div>
<div style="clear: both"></div>
</div>
</a>

<a class="market_listing_row_link" href="http://steamcommunity.com/market/listings/753/394540-Male%20Citizen" id="resultlink_4">
<div class="market_listing_row market_recent_listing_row market_listing_searchresult" id="result_4">
<img id="result_4_image" src="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QT3pKmuFWD-cjLKaSjUHVltQLMNM2mIqzHx4OuSSjmaRrkoQQEBdaUM821PNcHaNxQ_1dFYrma7khAzDhgvNMdJYgu-2EsaPLwizXwTc50BzyGhIpfQhFtmO0FuWunnU--WaYSgkiohWh4yHvMaNYqc6iK65tevPeHAIPmj9AQNCg/62fx62f" srcset="http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QT3pKmuFWD-cjLKaSjUHVltQLMNM2mIqzHx4OuSSjmaRrkoQQEBdaUM821PNcHaNxQ_1dFYrma7khAzDhgvNMdJYgu-2EsaPLwizXwTc50BzyGhIpfQhFtmO0FuWunnU--WaYSgkiohWh4yHvMaNYqc6iK65tevPeHAIPmj9AQNCg/62fx62f 1x, http://steamcommunity-a.akamaihd.net/economy/image/IzMF03bi9WpSBq-S-ekoE33L-iLqGFHVaU25ZzQNQcXdA3g5gMEPvUZZEaiHLrVJRsl8vGuCUY7Cjc9ehDNVzDMFc3atiSQrcex4NM6b7QT3pKmuFWD-cjLKaSjUHVltQLMNM2mIqzHx4OuSSjmaRrkoQQEBdaUM821PNcHaNxQ_1dFYrma7khAzDhgvNMdJYgu-2EsaPLwizXwTc50BzyGhIpfQhFtmO0FuWunnU--WaYSgkiohWh4yHvMaNYqc6iK65tevPeHAIPmj9AQNCg/62fx62fdpx2x 2x" style="" class="market_listing_item_img" alt="" />
<div class="market_listing_price_listings_block">
<div class="market_listing_right_cell market_listing_num_listings">
<span class="market_table_value">
<span class="market_listing_num_listings_qty">217</span>
</span>
</div>
<div class="market_listing_right_cell market_listing_their_price">
<span class="market_table_value normal_price">
Starting at:<br/>
<span class="normal_price">$0.07 USD</span>
<span class="sale_price">$0.06 USD</span>
</span>
<span class="market_arrow_down" style="display: none"></span>
<span class="market_arrow_up" style="display: none"></span>
</div>
</div>

<div class="market_listing_item_name_block">
<span id="result_4_name" class="market_listing_item_name" style="color: #;">Male Citizen</span>
<br/>
<span class="market_listing_game_name">Spaceport Hope Trading Card</span>
</div>
<div style="clear: both"></div>
</div>
</a>
</div>

<div id="searchResults_ctn" class="market_paging" style="">
<div class="market_paging_controls" id="searchResults_controls">
<span id="searchResults_btn_prev" class="pagebtn">&lt;</span>
<span id="searchResults_links"></span>
<span id="searchResults_btn_next" class="pagebtn">&gt;</span>
</div>
<div class="market_paging_summary ellipsis">
Showing <span id="searchResults_start">1</span>-<span id="searchResults_end">5</span> of <span id="searchResults_total">5</span> results </div>
<div style="clear: both;"></div>
</div>
</div>
</div>
<div style="clear:both"></div>
</div>
<br />
</div></div>
<div id="market_advancedsearch_dialog" class="" style="display: none;">
<div>
<form id="market_advanced_search" accept-charset="UTF8" action="http://steamcommunity.com/market/search" method="GET" >
<div id="market_advancedsearch_left">
<input class="filter_search_box market_search_sidebar_search_box" type="text" id="advancedSearchBox" value="" placeholder="Search" name="q" autocomplete="off" tabindex="1" />
<input class="market_search_submit_button" id="advancedSearchSubmit" type="submit" value="Submit" tabindex="3" />
<div id="market_advancedsearch_options">
<input class="market_search_checkbox" id="market_advanced_searchdescriptions_checkbox" type="checkbox" name="descriptions" value="1" title="By default, the Community Market will only look for matches in the items' names and types. If you check this box, all of the text in the items' descriptions will be searched too. Searching for matches in descriptions may cause your search to take more time to complete." tabindex="2" />
<label for="market_advanced_searchdescriptions_checkbox" title="By default, the Community Market will only look for matches in the items' names and types. If you check this box, all of the text in the items' descriptions will be searched too. Searching for matches in descriptions may cause your search to take more time to complete.">Include descriptions in search</label>
</div>
</div>
<div style="overflow: hidden">
<div  class="market_app_selector">
<div class="appselect" id="market_advancedsearch_appselect" onclick="ShowMenu( 'market_advancedsearch_appselect', 'market_advancedsearch_appselect_options', 'left' );">
<div id="market_advancedsearch_appselect_activeapp" class="option">
<div id="app_option_0_selected" class="popup_item market_advancedsearch_appname">
<span>All Games</span>
</div>
</div>
<div id="appselect_arrow"></div>
</div>
<div id="market_advancedsearch_appselect_options" class="popup_block_new" style="display: none;">
<div id="market_advancedsearch_appselect_options_apps" class="popup_body popup_menu">
<div id="app_option_0" class="popup_item popup_menu_item market_advancedsearch_appname">
<span>All Games</span>
</div>
<div id="app_option_614910" class="popup_item popup_menu_item market_advancedsearch_appname" data-appid="614910">
<img src="http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/614910/c6f1651397f184591392261660b11ac2aa03d694.jpg" alt="#monstercakes" /><span>#monstercakes</span>
</div>
</div>
</div>
</div>
<div id="market_advancedsearch_filters" class="market_advancedsearch_filters">
Pick a game from the drop-down list above to see the available filters. </div>
</div>
</form>
</div>

<div class="market_advancedsearch_bottombuttons">
<a href="javascript:ResetSearchFilters();">Reset to default</a>
<div onclick="document.forms['market_advanced_search'].submit();" class="btn_medium btn_green_white_innerfade">
<span>
Search </span>
</div>
</div>
</div>

<script type="text/javascript">
var g_bLoggedIn = false;
var g_strCountryCode = "UA";
var g_strLanguage = "english";

g_bModalModifyAnchorTargets = false;
g_bModalCacheContent = false;

function HandleHashChange( bClearResults )
{
if ( window.location.hash.length > 2 && window.location.hash.substr(0,2) == "#p" )
{
var elParts = window.location.hash.substr(2).split('_');

var nPage = parseInt( elParts[0] );
var strNewSortColumn = elParts.length >= 3 ? elParts[1] : g_strSortColumn;
var strNewSortDir = elParts.length >= 3 ? elParts[2] : g_strSortDir;
var bSortingChanged = strNewSortColumn != g_strSortColumn || strNewSortDir != g_strSortDir;

if ( nPage - 1 != g_oSearchResults.m_iCurrentPage || bSortingChanged )
{
g_strSortColumn = strNewSortColumn;
g_strSortDir = strNewSortDir;

if ( bClearResults )
{
$('searchResultsRows').innerHTML = '';
}

g_oSearchResults.GoToPage( nPage - 1, bSortingChanged );
}
}
}

Event.observe( document, 'dom:loaded', function() {
g_oSearchResults = new CAjaxPagingControls( g_oSearchData, 'http://steamcommunity.com/market/search/' );
g_oSearchResults.SetPageChangingHandler( function( nPage ) {
if ( !g_bInHashChange )
{
window.location.hash = 'p' + ( nPage + 1 ) + '_' + g_strSortColumn + '_' + g_strSortDir;
}
} );

g_oSearchResults.SetPreRequestHandler( function( params ) {
$J('#searchResultsTable').removeClass( 'market_listing_table_active' );
$J('#searchResultsRows').fadeTo( 'fast', 0.5 );

params['search_descriptions'] = ( g_oSearchData['search_descriptions'] ? 1 : 0 );
params['sort_column'] = g_strSortColumn;
params['sort_dir'] = g_strSortDir;
params['appid'] = 753;
params["category_753_Game[]"] = ["tag_app_394540"];
params["category_753_cardborder[]"] = ["tag_cardborder_0"];
params["category_753_item_class[]"] = ["tag_item_class_2"];
} );

g_oSearchResults.SetResponseHandler( function( response ) {
WatchForSortableColumnClicks();

$J('#searchResultsTable').addClass( 'market_listing_table_active' );
$J('#searchResultsRows').fadeTo( 'fast', 1.0 );

UpdateSortArrows();
} );

WatchForSortableColumnClicks();

HandleHashChange( true );
UpdateSortArrows();
} );

Event.observe( window, 'hashchange', function() {
g_bInHashChange = true;
try
{
HandleHashChange( false );
}
finally
{
g_bInHashChange = false;
}
});
</script>

</div> <!-- responsive_page_legacy_content -->

<div id="footer_spacer"></div>
<div id="footer_responsive_optin_spacer"></div>
<div id="footer">
<div class="footer_content">
<span id="footerLogo"><img src="http://steamcommunity-a.akamaihd.net/public/images/skin_1/footerLogo_valve.png?v=1" width="96" height="26" border="0" alt="Valve Logo" /></span>
<span id="footerText">
&copy; Valve Corporation. All rights reserved. All trademarks are property of their respective owners in the US and other countries.<br/>Some geospatial data on this website is provided by <a href="https://steamcommunity.com/linkfilter/?url=http://www.geonames.org" target="_blank" rel="noreferrer">geonames.org</a>. <br>
<span class="valve_links">
<a href="http://store.steampowered.com/privacy_agreement/" target="_blank">Privacy Policy</a>
&nbsp; | &nbsp;<a href="http://www.valvesoftware.com/legal.htm" target="_blank">Legal</a>
&nbsp;| &nbsp;<a href="http://store.steampowered.com/subscriber_agreement/" target="_blank">Steam Subscriber Agreement</a>
</span>
</span>
</div>
<div class="responsive_optin_link">
<div class="btn_medium btnv6_grey_black" onclick="Responsive_RequestMobileView()">
<span>View mobile website</span>
</div>
</div>
</div>

</div> <!-- responsive_page_content -->

</div> <!-- responsive_page_frame -->
</body>
</html>

Какое-то число с точкой может и выше в коде проскочить, нужно считать все параметры из строчек типа:

<span class="normal_price">$0.07 USD</span>

P.S. Таких строчек может быть 5 и больше, нужно их все считать.

4

Re: AHK: Выделить цену из текста с помощью регулярного выражения

url = http://steamcommunity.com/market/search?category_753_Game%5B%5D=tag_app_394540&category_753_cardborder%5B%5D=tag_cardborder_0&category_753_item_class%5B%5D=tag_item_class_2&appid=753

html := QueryResponseWebsite(url)
prices := []

while RegExMatch( html, "O)<span class=""normal_price"">\$([0-9\.]+)\s*USD</span>", price, A_Index = 1 ? 1 : price.Pos(1) + price.Len(1) )
   prices.Push(price[1])

; цены в массиве prices
; проверка:

for k, v in prices
   MsgBox, % v

QueryResponseWebsite(url)
{
   HttpObj := ComObjCreate("WinHttp.WinHttpRequest.5.1")
   ComObjError(false)
   HttpObj.Open("GET", Url) 
   HttpObj.Send()   
   HttpObj.WaitForResponse()
   return HttpObj.ResponseText
}
Разработка AHK-скриптов:
e-mail dfiveg@mail.ru
Skype dmitry_fiveg