Closed mmahalwy closed 10 years ago
Can you paste you entire trace
Working in rails console
Loading production environment (Rails 4.0.4) 2.1.1 :001 > @profile = Linkedin::Profile.get_profile( 'http://www.linkedin.com/in/mmahalwy') 999 => for -- http://www.linkedin.com/in/mmahalwy => nil
Works fyn for me on local machine
On Tue, Mar 18, 2014 at 10:59 PM, Mohamed El Mahallawy < notifications@github.com> wrote:
Working in rails console
Loading production environment (Rails 4.0.4) 2.1.1 :001 > @profile https://github.com/profile = Linkedin::Profile.get_profile( 'http://www.linkedin.com/in/mmahalwy')
999 => for -- http://www.linkedin.com/in/mmahalwy => nil
Reply to this email directly or view it on GitHubhttps://github.com/yatish27/linkedin-scraper/issues/21#issuecomment-37962418 .
Yats
Local works great, but production doesn't work
Check if linkedin is not blocked On 18-Mar-2014, at 11:11 pm, Mohamed El Mahallawy notifications@github.com wrote:
Local works great, but production doesn't work
— Reply to this email directly or view it on GitHub.
How do i do that?
Probably Linkedin is blocking your prod machine IP. I had the same problem and I had to use tor to get my app to work.
What's tor?
@carlotorniai do you have an example to how you used it? Would i just do: res = Tor::HTTP.get(Linkedin::Profile.get_profile( 'http://www.linkedin.com/in/mmahalwy'))
That should work basically you want to redirect the http results to tor. But I will go back to my code as soon as I have the time.
Perfect, thanks Carlo!
Tried Tor, not working well with new ruby?
@yatish27 anyway to have it not blocked by linkedin?
Just created a small server on heroku and returns nil, same problem as noted above (that was on Rackspace).
I am not seeing anything from mechanize. Not working in production maybe?
Any update on this issue?
Check out this issue at Mechanize - https://github.com/sparklemotion/mechanize/issues/336
Seems like linkedin is blocking...
Yep, had to proxy
Using Ruby 2.1.1 and Rails 4.0.3
Development, works great. Production, I get this
999 => for -- http://www.linkedin.com/in/mmahalwy