TheBlackGamer Posted July 9, 2016 Share Posted July 9, 2016 I have a Xml FIle Contains alot of Tags And i want to Copy or Take Certain Tags any Thoughts ?! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 9, 2016 Moderators Share Posted July 9, 2016 TheBlackGamer, Many thoughts - but not at all sure which ones might be of use to you. How about a copy of the XML file and some details of the tags you wish to extract. Then we might be able to offer some sensible advice. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
TheBlackGamer Posted July 10, 2016 Author Share Posted July 10, 2016 i want to make alist of The games That each User has in Steam Here is The xml File Of A User http://steamcommunity.com/id/CptYakuza/games?tab=all&xml=1 i want to copy the line Between The Appid <gamesList> <steamID64>76561198078412927</steamID64> <steamID> <![CDATA[ Yakuza ]]> </steamID> <games> <game> <appID>374320</appID> <name> <![CDATA[ DARK SOULS III ]]> </name> <logo> <![CDATA[ http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/374320/54f76fd3abdd1446260f28ccc0cbc76034b32de9.jpg ]]> </logo> Then Replace This Number By Its Name From here http://api.steampowered.com/ISteamApps/GetAppList/v0001/ Link to comment Share on other sites More sharing options...
Danyfirex Posted July 10, 2016 Share Posted July 10, 2016 Hello. You can do something like this. #include <InetConstants.au3> #include <StringConstants.au3> #include <Array.au3> Local $sGameXML = BinaryToString(InetRead("http://steamcommunity.com/id/CptYakuza/games?tab=all&xml=1", $INET_FORCERELOAD), $SB_UTF8) Local $sGAppList = BinaryToString(InetRead("http://api.steampowered.com/ISteamApps/GetAppList/v0001/", $INET_FORCERELOAD), $SB_UTF8) ;~ ConsoleWrite($sGameXML & @CRLF) ;~ ConsoleWrite($sGAppList & @CRLF) Local $aGameAppIDs = StringRegExp($sGameXML, '<appID>(.*?)</appID>', $STR_REGEXPARRAYGLOBALMATCH) ;~ _ArrayDisplay($aGameAppIDs) $sGAppList = StringReplace($sGAppList, '"', "") Local $aAppList = StringRegExp($sGAppList, '(?:appid|name):([^\{,}]+)', $STR_REGEXPARRAYGLOBALMATCH) ;~ _ArrayDisplay($aAppList) Local $aResult[UBound($aGameAppIDs)][2] Local $iIndexFound = -1 Local $iIndex = 0 For $i = 0 To UBound($aAppList) - 1 Step 2 ConsoleWrite($aAppList[$i] & @CRLF) $iIndexFound = _ArraySearch($aGameAppIDs, StringReplace($aAppList[$i], " ", "")) If $iIndexFound > -1 Then ;~ ConsoleWrite($iIndexFound & @CRLF) $aResult[$iIndex][0] = $aGameAppIDs[$iIndexFound] $aResult[$iIndex][1] = $aAppList[$i + 1] $iIndex += 1 EndIf Next _ArrayDisplay($aResult) Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
TheBlackGamer Posted July 10, 2016 Author Share Posted July 10, 2016 41 minutes ago, Danyfirex said: Hello. You can do something like this. #include <InetConstants.au3> #include <StringConstants.au3> #include <Array.au3> Local $sGameXML = BinaryToString(InetRead("http://steamcommunity.com/id/CptYakuza/games?tab=all&xml=1", $INET_FORCERELOAD), $SB_UTF8) Local $sGAppList = BinaryToString(InetRead("http://api.steampowered.com/ISteamApps/GetAppList/v0001/", $INET_FORCERELOAD), $SB_UTF8) ;~ ConsoleWrite($sGameXML & @CRLF) ;~ ConsoleWrite($sGAppList & @CRLF) Local $aGameAppIDs = StringRegExp($sGameXML, '<appID>(.*?)</appID>', $STR_REGEXPARRAYGLOBALMATCH) ;~ _ArrayDisplay($aGameAppIDs) $sGAppList = StringReplace($sGAppList, '"', "") Local $aAppList = StringRegExp($sGAppList, '(?:appid|name):([^\{,}]+)', $STR_REGEXPARRAYGLOBALMATCH) ;~ _ArrayDisplay($aAppList) Local $aResult[UBound($aGameAppIDs)][2] Local $iIndexFound = -1 Local $iIndex = 0 For $i = 0 To UBound($aAppList) - 1 Step 2 ConsoleWrite($aAppList[$i] & @CRLF) $iIndexFound = _ArraySearch($aGameAppIDs, StringReplace($aAppList[$i], " ", "")) If $iIndexFound > -1 Then ;~ ConsoleWrite($iIndexFound & @CRLF) $aResult[$iIndex][0] = $aGameAppIDs[$iIndexFound] $aResult[$iIndex][1] = $aAppList[$i + 1] $iIndex += 1 EndIf Next _ArrayDisplay($aResult) Saludos It didnt work i was Thinking To Search For Each <appId> And Copy The Number and paste it in Text then change each no. with its Value or Name ?! Link to comment Share on other sites More sharing options...
Danyfirex Posted July 10, 2016 Share Posted July 10, 2016 you can modify my example to meet your needs. It is not strictly what you need, but it is a way to achieve it. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
AutoBert Posted July 10, 2016 Share Posted July 10, 2016 5 hours ago, TheBlackGamer said: i want to make alist of The games That each User has in Steam i don't think Steam is telling that you for all users Link to comment Share on other sites More sharing options...
TheBlackGamer Posted July 10, 2016 Author Share Posted July 10, 2016 3 hours ago, AutoBert said: i don't think Steam is telling that you for all users Not all The Users ... The Public Ones Only ! Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 11, 2016 Moderators Share Posted July 11, 2016 TheBlackGamer, While I am happy to let this thread run, both the subject and your username suggest you should read the Forum rules pretty soon so you are quite clear on what is and is not allowed to be discussed here. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
TheBlackGamer Posted July 11, 2016 Author Share Posted July 11, 2016 its a username i choose about 2-3 Years Ago .. and The Thread is About a program iam useing to make A survey on which the Most Bought / purchased Game with Steam Users it Doesnt iNclude Hacking or thing Besides Steam Already Let The Game Shown to Everyone Iam Just Takeing Some Text From a An Opened Page Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now