If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Can i read an url site in ruby?
5 posts
• Page 1 of 1
Can i read an url site in ruby?
I have a facebook like url button in a simple html site. Can i see this button in ruby if i want to make a like button in a software, or it's not good way? Ruby is totally new for me.
freddymusic.hu
-
Freddymusic - Posts: 30
- Joined: Mon Apr 16, 2007 4:57 pm
Re: Can i read an url site in ruby?
The ruby componet isn't ruby on rails (Ror) wich is used for website.
Why not pointing your button directly to your Facebook page or in a welcome page you make with the like button?
Why not pointing your button directly to your Facebook page or in a welcome page you make with the like button?
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
-
CoreStylerz - Posts: 327
- Joined: Sun Jan 22, 2012 2:19 am
- Location: italy
Re: Can i read an url site in ruby?
Yes, it's good for me, just i think'd maybe have a direct solution wihout a second step. I thought about it, maybe i can do that with the httppost module, but i couldn't made it. So if i want a + like it's work only in a browser.
I saw some information with the ruby, but i'm not sure it is good for me.
require 'net/http'
require 'uri'
def open(url)
Net::HTTP.get(URI.parse(url))
end
page_content = open('http://www.google.com')
puts page_content
I saw some information with the ruby, but i'm not sure it is good for me.
require 'net/http'
require 'uri'
def open(url)
Net::HTTP.get(URI.parse(url))
end
page_content = open('http://www.google.com')
puts page_content
freddymusic.hu
-
Freddymusic - Posts: 30
- Joined: Mon Apr 16, 2007 4:57 pm
Re: Can i read an url site in ruby?
Freddymusic wrote:Yes, it's good for me, just i think'd maybe have a direct solution wihout a second step. I thought about it, maybe i can do that with the httppost module, but i couldn't made it. So if i want a + like it's work only in a browser.
I saw some information with the ruby, but i'm not sure it is good for me.
require 'net/http'
require 'uri'
def open(url)
Net::HTTP.get(URI.parse(url))
end
page_content = open('http://www.google.com')
puts page_content
You can't use Ror in standard ruby. Ruby in flowstone is not designer for web apps.
For sure the debug will say that net/http isn't available.
I can make a script on php if you want but as a service.
But I believe you cannot directly add like via http post.
They want you to load their frame.
You can maybe solve this by creating a ruby exe (not in flowstone) that open when you click your fs app button.
In that case you can open an HTML from web as a browser
Here some SDK for interfacing facebook in ruby, c, java and others.https://developers.facebook.com/docs/other-sdks
Gems should work in exe but not in vst under flowstone.
Need my support for app development, website or custom scripts?
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
PM me if you are interested.
Experienced Java, J2EE, PHP, Javascript, Angular, Cloud Solutions developer.
-
CoreStylerz - Posts: 327
- Joined: Sun Jan 22, 2012 2:19 am
- Location: italy
Re: Can i read an url site in ruby?
Thank you this info, it's not an important problem, i just played with this idea.
freddymusic.hu
-
Freddymusic - Posts: 30
- Joined: Mon Apr 16, 2007 4:57 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 95 guests