Jump to content

  • Curse Sites
Help
* * * * * 4 votes

GuildWars2Spidy - Graphs of the Trade Market

trade market graphs spider website

  • Please log in to reply
105 replies to this topic

#91 rp90

rp90

    Vanguard Scout

  • Members
  • 191 posts

Posted 25 September 2012 - 09:51 AM

I am trying to make a pyhon version and I always getting status code 400 when trying to login into gw2. I tried to replicate what I am doing in php and I get the same problem. Can you see why? Or am I doing it wrong? Should I be manualy logging in and updating the session in the server so that it can continue to work?

$url = 'https://account.guildwars2.com/login';
$fields = array(
		 'email' => urlencode("<email>"),
		 'password' => urlencode("<password>"),
	 );
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string, '&');
$options = array(
	 CURLOPT_RETURNTRANSFER => true,
	 CURLOPT_FOLLOWLOCATION => true,
	 CURLOPT_SSL_VERIFYPEER => false,
	 CURLOPT_FAILONERROR => false,
	 CURLOPT_TIMEOUT	 => 10,
	 CURLOPT_CONNECTTIMEOUT => 10,
	 CURLOPT_HEADER		 => true,
	 CURLOPT_POST	 => count($fields),
	 CURLOPT_POSTFIELDS => $fields_string,
	 CURLOPT_REFERER => $url // Updated... but still doesn't get things rolling
);
static $headers = array(
	 "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
	 "Accept-Language: en-us,en;q=0.5",
	 // while we can get raw, we don't have to gunzip the response <3
	 "Accept-Encoding: deflate",
	 "Connection: keep-alive",
	 "User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1",
);
	 $options[CURLOPT_HTTPHEADER] = $headers;
$ch = curl_init($url);
curl_setopt_array($ch, $options);
preg_match('/^Set-Cookie: (.*?);/m', curl_exec($ch), $m);
var_dump(parse_url($m[1]));
$http_status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo "Status $http_status\n";
//close connection
curl_close($ch);


Edited by rp90, 25 September 2012 - 03:50 PM.


#92 Drakie2

Drakie2

    Pale Tree Seedling

  • New Members
  • 1 posts

Posted 25 September 2012 - 10:02 AM

unfortunately I've been locked out of my normal account (somehow can't link it to my curse account ... :S) so replying from this one instead ;)

you gotta set the referrer as the same URL as the URL you're trying to open, somehow that helps ;)
contact me by email or IRC if you need more help, details are on homepage of gw2spidy.com

#93 Aria Frost

Aria Frost

    Fahrar Cub

  • Members
  • 29 posts
  • Location:Italy
  • Server:Henge of Denravi

Posted 26 September 2012 - 09:47 AM

In order to check the most wanted items, could you add the available sales/offers data and their difference as sortable columns?

#94 Rockair

Rockair

    Pale Tree Seedling

  • New Members
  • 2 posts
  • Server:Whiteside Ridge

Posted 29 September 2012 - 12:20 PM

feature request: column for "price trend" so i don't need to click on the item to see if the item's price is increasing or decreasing

#95 beadnbutter32

beadnbutter32

    Sylvari Specialist

  • Members
  • 618 posts
  • Location:Highway 61 Central US
  • Server:Henge of Denravi

Posted 29 September 2012 - 12:32 PM

View PostDrakie, on 06 August 2012 - 08:26 AM, said:

I'd love to hear some feedback on what people think would be good features to build or how to improve the core feature (the graphs)

The graphs are nice, but all I really want to know are the averages so I know what a ballpark price is for any item I want to sell or buy.

The number one feature the site needs is to link to the individual item stats. Presently I have to have two browser tabs open, your site and Guild Wars 2 Guru Database when I shop the trading post, your site to see price data, and Guru to see the item stats.  If Guild Wars 2 Guru can do it, you should be able to also.

#96 sanktanglia

sanktanglia

    GW2DB Developer

  • Curse Staff
  • Curse Premium
  • 127 posts
  • Server:Anvil Rock

Posted 29 September 2012 - 03:10 PM

@beadnbutter32: figuring out the item data/stats is not an easy task. it took hundreds if not thousands of man hours to get gw2db to the state its in, alot of that being from professional reverse engineers. That being said, gw2db is partnering with gw2spidy, so youll be able to see our nice tooltips on their site very soon!

#97 Drakie

Drakie

    Asuran Acolyte

  • Members
  • 56 posts

Posted 03 October 2012 - 05:59 PM

FINALY got back into my gw2guru account after some weird stuff with curse / gw2guru accounts not being linked 2gether properly!

Just in time to announce the first version being released of the crafting features for gw2spidy! \o/
go check it out and let me know what you think of it!

#98 UmThatOneGuy

UmThatOneGuy

    Fahrar Cub

  • Members
  • 39 posts
  • Location:somewhere out there
  • Guild Tag:[ARX]
  • Server:Yak’s Bend

Posted 04 October 2012 - 11:20 AM

I think its great, and I sent you an email on this, but when displaying the crafting of bags in the crafting section you don't have the prices for the runes of holding which is a vendor item and can only be bought to craft the bag.  It's making bags seem profitable when they usually aren't.

#99 MaddBomber83

MaddBomber83

    Asuran Acolyte

  • Members
  • 124 posts
  • Guild Tag:[ESP]
  • Server:Henge of Denravi

Posted 05 October 2012 - 05:32 PM

I really like the new crafting area.  Two suggestions:
Add filters such as skill level / ingredients.  This would allow crafters to narrow down what they can make and see only the listing on those.

For negative profit, maybe change the color of the text to red to make it a little more visible (the - is hard to catch if you are not already sorted).

Thank you again for this site and the effort!

#100 Drakie

Drakie

    Asuran Acolyte

  • Members
  • 56 posts

Posted 06 October 2012 - 11:03 AM

View PostMaddBomber83, on 05 October 2012 - 05:32 PM, said:

I really like the new crafting area.  Two suggestions:
Add filters such as skill level / ingredients.  This would allow crafters to narrow down what they can make and see only the listing on those.

For negative profit, maybe change the color of the text to red to make it a little more visible (the - is hard to catch if you are not already sorted).

Thank you again for this site and the effort!

Thanks, the filters might come at some point but require some work, the -profit is a good one :-)

#101 DataPhreak

DataPhreak

    Fahrar Cub

  • Members
  • 42 posts

Posted 07 October 2012 - 06:33 AM

Really liking this crafting addition. It's exactly what I am looking for. But this info is specific to your server. How can we get server info for our servers? Are we going to have to set up our own web server?

#102 Drakie

Drakie

    Asuran Acolyte

  • Members
  • 56 posts

Posted 07 October 2012 - 12:35 PM

the tradingpost is global across the whole world

#103 DataPhreak

DataPhreak

    Fahrar Cub

  • Members
  • 42 posts

Posted 07 October 2012 - 10:57 PM

This i did not know. Learn something new every day.

Idea for a new feature. Not sure how your database is structured, but how about adding a link to any component item page that shows a table of all of the recipes it's used in?

Edited by DataPhreak, 07 October 2012 - 10:59 PM.


#104 Gimiz

Gimiz

    Fahrar Cub

  • Members
  • 42 posts
  • Location:(╯°□°)╯︵ ┻━┻
  • Guild Tag:[LRT]
  • Server:Fort Ranik

Posted 08 October 2012 - 02:47 PM

HI Drakie, thanks for the awesome website !

A small question though, wouldn't it be more relevant to use buy prices for profits calculations ? (or give us the choice to use buy or sell price for it)


Thx again

#105 DataPhreak

DataPhreak

    Fahrar Cub

  • Members
  • 42 posts

Posted 09 October 2012 - 10:02 PM

On the crafting page, it tells you whether a component is better to buy or craft. If you're referring to flipping items, that's called the margin.

#106 Uder

Uder

    Vanguard Scout

  • Members
  • 327 posts

Posted 21 November 2012 - 05:13 PM

Sorry if this has been asked before, but i couldnt find it:

What does "Buy /Sell  Listings Volume 1 My Avg" mean exactly?

Is it the amount of buy orders that has been bought and sold per day?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users