简体   繁体   English

通过用户登录从其他网站导入用户帐户数据

[英]Import user accounts data from other websites with user sign-in

dealsgoround.com and citypockets.com access user accounts and their daily deals from livingsocial.com and other daily deal websites. dealgoround.comcitypockets.comlivingsocial.com和其他每日交易网站访问用户帐户及其每日交易。 These websites ask users to give their credentials to sign them in to respective websites and then import account details. 这些网站要求用户提供其凭据以将其登录到相应的网站,然后导入帐户详细信息。 LivingSocial and other deal website don't provide API access to user accounts. LivingSocial和其他交易网站不提供对用户帐户的API访问。

I also want such access to other websites and import data from there. 我也希望能够访问其他网站并从那里导入数据。 But I am unable to find out the backend process by which dealsgoround.com and citypockets.com import data from Groupon and LivingSocial etc. 但是我找不到后端交易流程,通过该流程Dealsgoround.comcitypockets.com从Groupon和LivingSocial等导入数据。

By now I am able to find out that web crawlers/spiders can be used to scrap data from web pages. 到现在为止,我已经能够发现Web爬网程序/蜘蛛可以用于从网页中抓取数据。 But I am not sure web crawlers can be useful in a scenario where we need user sign in and the page urls are encrypted or at least are dynamically generated urls. 但是我不确定Web爬网程序在需要用户登录并且页面网址已加密或至少是动态生成的网址的情况下是否有用。

Please help me and suggest me a way to do this. 请帮助我,并建议我一种方法。 If crawlers are the solution to this please provide links to some web crawler APIs that I can use in my .net application. 如果搜寻器是解决此问题的方法,请提供指向一些我可以在.net应用程序中使用的Web搜寻器API的链接。

Thanks 谢谢

Atif 阿提夫

The ability to sign in using alternate credential such as Facebook or Google ID is called Open Auth or OAuth (pronounced Oath). 使用备用凭据(例如Facebook或Google ID)登录的功能称为Open Auth或OAuth(发音为Oath)。

Incidentally you should not import the data without the users express permission and be vigilent of security issues. 顺便说一句,未经用户明确许可并且不要对安全问题保持警惕,请勿导入数据。

There is a lot of documentation available and a lot of it rather heavy. 有很多可用的文档,而且很多文档都很繁琐。 The best place to start is to read specification RFC 5849 最好的起点是阅读规范RFC 5849

The OAuth website is also useful http://oauth.net OAuth网站也非常有用http://oauth.net

I was able to find the answer... Yes web crawler is the solution in this scenario. 我能够找到答案...是的,在这种情况下,Web搜寻器是解决方案。

We can use PHP, ASP.net or any other server side scripting language to send an httppostrequest with post parameters (user_name/password). 我们可以使用PHP,ASP.net或任何其他服务器端脚本语言发送httppostrequest与POST参数(USER_NAME /密码)。 This will authenticate (sign in) the user. 这将验证(登录)用户。 After sign-in we can read the contents of any url with user information who has been signed-in. 登录后,我们可以读取带有已登录用户信息的任何URL的内容。

Note: In my case this isn't unauthorized access to user accounts as users provide their credentials themselves to import their data from deal websites as in dealsgoround.com and citypocket.com 注意:在我的情况下,这不是对用户帐户的未经授权的访问,因为用户自己提供凭据即可从Deal网站导入数据,如dealgoround.comcitypocket.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 导入错误:无法从部分初始化的模块“apps.accounts.models”中导入名称“用户”((很可能是由于循环导入) - ImportError: cannot import name 'User' from partially initialized module 'apps.accounts.models' ((most likely due to a circular import) Rails twitter-api无需访问即可获取acces令牌,并将其存储在与用户不同的模型中 - Rails twitter-api get acces token without “sign-in” and store it in a different model than user 通过Linkedin导入用户数据 - User Data import through Linkedin 在 Android 应用程序中显示来自用户推特帐户的推文 - Displaying tweets from user's twitter accounts in an android app JAVA从所有Windows用户帐户检索所有打印机 - JAVA retrieve all printers from all windows user accounts 高效收集用户关注的账号 - Collect accounts followed by an user efficiently 用户帐户的 Github API 调用 - Github API call for user accounts 在 API 或 gcloud 的 firebase 项目中启用登录方法 - Enable sign-in methods in firebase project from API or gcloud 如何检索不同用户帐户的模板 - how to retrieve templates for different user accounts 在Zillow和其他API网站中解析XML数据 - Parsing XML data in Zillow and other API websites
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM