Jump to content
McKay Development

MrRobot

Member
  • Posts

    13
  • Joined

  • Last visited

Everything posted by MrRobot

  1. Good Day, I have the question about httpRequestGet & httpRequestPost functionality. Cookies for store.steampowered.com and steamcommunity.com websites are same, however there is no way how to interact with store.steampowered.com via httpRequestGet, because we are not able to setCookies via node-steamcommunity and there is no httpRequest functionality in node-steamstore. What would be the easiest solution? Thank you in advance.
  2. I found the problem. Unfortunately I did not find a solution. I debugged these editProfile() requests and I got something like this: #1 Request: EndPoint: edit Url: /profiles/76561198470762397 Form: { sessionID: 'b7fc5c8cd58708f8122da81c', type: 'profileSave', weblink_1_title: '', weblink_1_url: '', weblink_2_title: '', weblink_2_url: '', weblink_3_title: '', weblink_3_url: '', personaName: 'Some title', real_name: '', country: '', state: '', city: '', customURL: '', summary: '', primary_group_steamid: '0' } #2 Request: On the second request I have correct Form, but I have the same URL. /profiles/76561198470762397 The problem is that we cache profileURL and do not delete it after another login() function. I created a pull request with simple fix. Hope this will help somebody. https://github.com/DoctorMcKay/node-steamcommunity/pull/130
  3. I just removed this part here and left only the most important parts and the basic idea. But as you can see I am logging SteamID: console.log(community.steamID.getSteamID64());And I see the correct one on console. And of course I tried with joinGroup() method, all 5 accounts successfully joined the group. When I am tried to use setupProfile(), It did not work, but I always saw "null" result.
  4. Hello, I have a problem with my code when I am trying to login() and editProfile() more than one account at once. My script: var community = new SteamCommunity(); var activationProcess = setInterval(prepareActivation, 20000); function prepareActivation() { doLogin(usernames[n], passwords[n]); n++; } function doLogin(accountName, password, authCode, twoFactorCode, captcha) { community.login({ // Some data }, function(err, sessionID, cookies, steamguard) { console.log(community.steamID.getSteamID64()); editProfile(username); }); } function setupProfile(username) { community.editProfile({ 'name' : username, }, function(err) { if (err) { console.log('Failed to Edit Profile'); console.log(err); } }); }As you can see from code I am trying to change SteamCommunity name. I do it through interval because I have 5 accounts. I do not understand why, but I am able to edit profile only for the first account. After that I get this error: Failed to Edit Profile Error: HTTP error 302 at SteamCommunity.<anonymous> (/Users/newbie/Work/Tools/node-steam-community/node_modules/steamcommunity/components/profile.js:123:22) at Request._callback (/Users/newbie/Work/Tools/node-steam-community/node_modules/steamcommunity/components/http.js:67:15) at Request.self.callback (/Users/newbie/Work/Tools/node-steam-community/node_modules/request/request.js:187:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/Users/newbie/Work/Tools/node-steam-community/node_modules/request/request.js:1044:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at Gunzip.<anonymous> (/Users/newbie/Work/Tools/node-steam-community/node_modules/request/request.js:965:12) at emitNone (events.js:91:20) I have no idea why It happens, because when I am trying other methods like joinGroup(), everything works fine. It will be great if someone could tell me the reason. Thank you very much.
  5. Great job! But I think this version is not published. "npm publish". https://www.npmjs.com/package/steamcommunity (3.26.0)
  6. UPDATE: I just compared both Cookies from store.steampowered.com and steamcommunity.com and noticed that Store has only "sessionId". After that I checked what "setCookie" function really do and noticed that this function is not responsible for such cookies set up as "steamLogin", "steamLoginSecure". For this reason, not all cookies being set for Store. Screenshot (setCookie function log): https://www.dropbox.com/s/uaz04ry6ci49vy6/Screenshot%202016-09-12%2015.33.02.png?dl=0 Unfortunately, I do not understand where exactly "steamLogin" cookie are being set up.
  7. I am sorry. I just tested new version and It seems that something is wrong. Because I am still logged in as guest when I am trying to send httpRequest to store.steampowered.com. I tried both http and https protocols. When I am trying to send httpRequest to steamcommunity.com everything works perfect and I see myself as logged in user. I was trying to take a look through code but did not find the reason why It happens. Any ideas? My code: community.httpRequestGet(url, (err, response, body) => { if (err) { console.log(err); process.exit(); } console.log(body); });
  8. You are best. Thank you! I was trying to use "steam-store", but whole code was a little bit messed. Now It works great!
  9. Hello, I have a question. I would like to send httpRequest request on store.steampowered.com website. But I noticed that after login cookies are set only on steamcommunity.com website. For this reason I am able to do it, but only as "guest" user. Is it possible somehow to send a request and stay online? I think It will be pretty good idea to share cookies between store and community like Steam does. Because both websites using the same cookie. Thank you.
  10. You are amazing. I will try to implement store country change by myself, I was talking about this: https://support.steampowered.com/kb_article.php?ref=6627-QSNM-5276 I will let you know If I will do it.
  11. Firstly I would like to say that you made amazing job! I have a few questions and suggestions. Questions: 1) createAccount() works great. But If I understand correctly It creates accounts through Steam client. Is it safe to create for example 30 or more accounts at once? Does Steam register my machine ID or just IP when I am using this function? 2) Is it possible to change account store country? (not profile country) 3) Is it possible to change email or password? If not, Is it hard to implement this kind of functionality?
×
×
  • Create New...