Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Mechanize::ResponseCodeError: 999 => for -- https://www.linkedin.com/in/jeffweiner08 #93

Open
washingon opened this issue Jun 18, 2016 · 19 comments

Comments

@washingon
Copy link

washingon commented Jun 18, 2016

linkedin-scraper (2.1.1)

irb(main):001:0> require 'linkedin-scraper'
=> true
irb(main):002:0> profile = Linkedin::Profile.new("http://www.linkedin.com/in/jeffweiner08")
Mechanize::ResponseCodeError: 999 => for -- https://www.linkedin.com/in/jeffweiner08

@pinymax
Copy link

pinymax commented Jun 24, 2016

Same for me. Works well on local machine, but doesn't work on Heroku or AWS. Is any way to use proxy or somehow fix this problem?

@natemcguire
Copy link

Same here. Looks like we need to set the user agent for mechanize.

sparklemotion/mechanize#336

@pinymax
Copy link

pinymax commented Jul 1, 2016

@natemcguire
"The latest version uses randomuser agent"
So I guess, it wouldn't ihelp

@CodeCompiler
Copy link

Need to put a proxy service like storm proxies into this so the IP resolution doesn't come back

@yatish27
Copy link
Owner

@CodeCompiler Any suggestion PRs

@chamnap
Copy link

chamnap commented Oct 1, 2016

@CodeCompiler, does the storm proxies work for you? I used myprivateproxy, but it doesn't work at all.

@rcavezza
Copy link

I just bought 10 proxies from instantproxies and I can't get a single valid response, whereas I can get a few responses per day without using a proxy. I'm only passing proxy_ip and proxy_port, not username and password.

@rcavezza
Copy link

I also bought a few IPs from StormProxies and I am having the same issues. I'm now using username and password on localhost - same result, 999 Mechanize error.

@rcavezza
Copy link

I created a PR, but it didn't fix my issue. If anyone has any insight into why this is occurring for me and can point me in the right direction on how to fix it, I'd really appreciate it. I can't tell if this is happening for everyone, or a small subset of people (based on the previous comments).

@rcavezza
Copy link

I have not been able to get over this issue. I'm going to attempt to use the mechanize gem without linkedin-scraper in hopes that I will be able to get it to work correctly. If I find a solution, I will come back and apply the fix to this repo.

@iliasnaamane
Copy link

Same error here /home/youpi/.rvm/gems/ruby-2.2.0/gems/mechanize-2.7.5/lib/mechanize/http/agent.rb:949:in `response_read': 999 Kindly help me, thanks

@Startouf
Copy link

Startouf commented Mar 20, 2017

Hey, any updates on this ? Also it seems like a duplicate of #70

I have tried StormProxy, limeProxies instantProxies and all IPs were already blocked apparently, even those who were said to be "linkedin proxies"

@matsossah
Copy link

@iliasnaamane @rcavezza @chamnap @yatish27 @CodeCompiler @pinymax @natemcguire @washingon Has anybody been able to resolve this issue? @Startouf and I work together and haven't found a single solution yet :/ Thanks in advance for any help you could provide!

@borenstejn
Copy link

Hi Guys,

I'm just trying to use the gem locally and after having succeeded twice, I end up with the same message: Mechanize::ResponseCodeError: 999 => for -- http://www.linkedin.com/in/jeffweiner08

I thought it was a problem with my IP address so I used a VPN (betternet) to trick LinkedIn, but i still have the same error coming. Do you have any clue for me ?

Thanks a lot

@Startouf
Copy link

Startouf commented May 12, 2017

Hey @borenstejn
I actually got a mail from a Proxy company that explained to me it was very hard nowadays to get a hold of proxys that work with Linkedin since they've become very aggressive.

FYI list of proxies already tried

  • InstantProxies.com
  • stormproxies
  • limeProxies
  • shader (who reported to me what I wrote just above)
  • betternet (reported by @borenstejn)

I'd be glad to have your feedback in case you find something that works, thank you very much.

@georgenicholas
Copy link

Did anyone ever figure this out? I'm getting the 999 error, it hasn't worked even once yet. I'm running this locally.

@shantilal-narola
Copy link

Any update on this?

@tp00012x
Copy link

Has somebody figured this out?

@sakinho
Copy link

sakinho commented Oct 8, 2019

This error happens to me locally with no proxy. Any idea of how to solve it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests