The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
SOLVED: Open File with basic authentication in RapidAnalytics
Dear all,
Has someone stumbled into this?
I want to open a file that on a site that has basic authentication. With Rapidminer that goes well, but I do not see the possibility for Analytics to remember passwords.
Get Page in theory should work, as you can pass special authentication parameters, but Get Page seems to transform the read data (I am reading an xls file).
Any suggestions ? (I understand we could write an extension to the open file operator...
Cheers,
Julio
Has someone stumbled into this?
I want to open a file that on a site that has basic authentication. With Rapidminer that goes well, but I do not see the possibility for Analytics to remember passwords.
Get Page in theory should work, as you can pass special authentication parameters, but Get Page seems to transform the read data (I am reading an xls file).
Any suggestions ? (I understand we could write an extension to the open file operator...
Cheers,
Julio
Tagged:
0
Answers
I think I'm answering your other part of this query on another topic.
I've used Basic authentication before with Get Page as well, but is that your main problem or simply reading the xls?
Thank you for this.We tried with Rapidminer 5.2.8 and the process you sent gave an error. BUT, tried it with 5.3 and it worked fine.
Great! So I assume that some work was done in 5.3 on these operators.
We should be able to take it from here! Thank you for this!
Please note that we would still be very interested in knowing how to POST a xls file to a Rapidanalytics service. We willl follow your encoding suggestions and play around. Actually, we will try this directly on 5.3 to ensure this is not the same problem!
Thank you!
Julio
Okay, let's solve your Basic Authentication troubles. I'm not sure how your authentication is based, but generally it'll need Base64 encryption which there isn't a RapidMiner operator for.
See the below process as an example that I normally use as a template when using Basic Auth.
Good luck.
Part of the solution was answered in the following thread:
http://rapid-i.com/rapidforum/index.php/topic,7143.0.html
And the rest is here.
Why that specific ISO encoding would do the job...? In any case, great support and thank you for your inventful approach to solving this!!
Many thanks!
Julio
I am trying to download data from Twitter and Facebook APIs directly into Rapidminer.
Thanks,
Albert
For OAuth the basic process is this.
> First register your application with the API to get your ClientKey, ClientSecret & if necessary any additional tokens instructions.
> Use GetPage to send these tokens in the request to the OAuth API.
> Next read the resulting Bearer token using ReadXML and store it as a Macro.
> Then use the 'token' Macro in any GetPage requests you have to prove authentication & execute your API request.
Considerations: You will want to separate this into separate processes because most APIs have a limit on the number of calls you can make within a certain period of time. So you store your 'Active' login token and make your API requests using this rather than wasting your calls reauthenticating each time.
Send me a note and we can have a proper chat about it, we work in similar areas so can probably help each other's knowledge using RM along the way.
Best,
John.