Hi David,
Thank you for your answer.
You mentioned that you used selenium and Scrapy together to capture the
information.
I know how to accomplish this using selenium but I don't see how Scrapy can
be of any help.
Could you please elaborate more on the roles played by selenium and Scrapy
for this case?
On Saturday, 28 May 2016 11:03:00 UTC+8, David Fishburn wrote:
>
>
> Yes, it is using JavaScript.
>
> Here is the function is calls:
>
> var marginAvailableCalculator = Class.create(FXMathBase, {
> initialize: function($super) {
> $super($A(["accountCurrencies", "currencyPairs", "customRateBase",
> "marginRatios", "unitAmount"]), $A(["marginUsed"]))
> },
> marginUsed: function() {
> return this.createInput("Margin Used", "marginUsed", {
> listenTo: "accountCurrencies"
> })
> },
> calculate: function() {
> if (this.startCalc() && this.checkFieldErrors()) {
> var a = "(customRateBase*unitAmount)/marginRatios";
> this.results.get("marginUsed").node.value = this.round(this.
> evaluateFormula(a), 2)
> }
> }
> });
>
>
> I found that in the debugger, under www.oanda.com\wandacache\fxmatch-*
>
> If you wanted to capture that you would have to use something that
> supports JavaScript.
> I use selenium / PhantomJS and Scrapy together in order to do this.
>
> David
>
--
You received this message because you are subscribed to the Google Groups
"scrapy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.