coala-bears icon indicating copy to clipboard operation
coala-bears copied to clipboard

URLHeadBear: fake the user agent

Open Akhelesh opened this issue 6 years ago • 5 comments

A random fake user agent is used to request webpages that do not allow bot visits.

Fixes https://github.com/coala/coala-bears/issues/1203

For short term contributors: we understand that getting your commits well defined like we require is a hard task and takes some learning. If you look to help without wanting to contribute long term there's no need for you to learn this. Just drop us a message and we'll take care of brushing up your stuff for merge!

Checklist

  • [ ] I read the commit guidelines and I've followed them.
  • [ ] I ran coala over my code locally. (All commits have to pass individually. It is not sufficient to have "fixup commits" on your PR, our bot will still report the issues for the previous commit.) You will likely receive a lot of bot comments and build failures if coala does not pass on every single commit!

After you submit your pull request, DO NOT click the 'Update Branch' button. When asked for a rebase, consult coala.io/rebase instead.

Please consider helping us by reviewing other peoples pull requests as well:

The more you review, the more your score will grow at coala.io and we will review your PRs faster!

Akhelesh avatar Feb 19 '19 20:02 Akhelesh

Comment on 5d00e2672be049dbfceed88660704d02eb498103.

Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)

Origin: GitCommitBear, Section: all.commit.

gitmate-bot avatar Feb 19 '19 21:02 gitmate-bot

Comment on 87fa05ed074bf4d80c90a008141edcc41787097c.

Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)

Origin: GitCommitBear, Section: all.commit.

gitmate-bot avatar Feb 19 '19 21:02 gitmate-bot

Comment on 87fa05ed074bf4d80c90a008141edcc41787097c.

Shortlog of HEAD commit does not match given regex: ([^:]|[^:]+: [A-Z0-9].*)

Origin: GitCommitBear, Section: all.commit.

gitmate-bot avatar Feb 19 '19 21:02 gitmate-bot

You could runcoala after you make all the changes and finish up commiting the changes.That would make it easier after pushing. Also in terms of the testing headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'}) Add these headers to your assertion tests.Travis seems to be failing because of that.

sladyn98 avatar Mar 03 '19 06:03 sladyn98

You could runcoala after you make all the changes and finish up commiting the changes.That would make it easier after pushing. Also in terms of the testing headers={'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36'}) Add these headers to your assertion tests.Travis seems to be failing because of that.

Yeah I have created an issue for the same to keep it separate from this one.

Akhelesh avatar Mar 04 '19 23:03 Akhelesh