Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/#236 cookies #242

Merged
merged 15 commits into from
Mar 15, 2019
Merged

Feature/#236 cookies #242

merged 15 commits into from
Mar 15, 2019

Conversation

ziflex
Copy link
Member

@ziflex ziflex commented Mar 2, 2019

Closes #236

@ziflex ziflex requested a review from 3timeslazy March 2, 2019 05:25
README.md Outdated
#### CLI

```sh
ferret --cdp-keep-cookies my-query.fql
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove left spaces pls

ferret --cdp-keep-cookies my-query.fql

switch cookie.SameSite {
case http.SameSiteLaxMode:
sameSite = network.CookieSameSiteLax
break
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break can be removed, because break is a default behavior of switch-case

switch c.SameSite {
case network.CookieSameSiteLax:
sameSite = http.SameSiteLaxMode
break
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

break can be removed, because break is a default behavior of switch-case


MaxAge int `json:"max_age"`
Secure bool `json:"secure"`
HttpOnly bool `json:"http_only"`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use HTTP instead of Http

cookie.Expires = time.Now().Add(time.Duration(24) + time.Hour)
}

normalizedUrl := normalizeCookieUrl(url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use normalizedURL instead of normalizedUrl


import (
"context"
"encoding/json"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused imports here

)

return program.Run(ctx)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here go fmt adds a new line

@codecov
Copy link

codecov bot commented Mar 4, 2019

Codecov Report

Merging #242 into master will decrease coverage by 0.5%.
The diff coverage is 0%.

@@           Coverage Diff            @@
##           master    #242     +/-   ##
========================================
- Coverage    56.7%   56.3%   -0.5%     
========================================
  Files         189     189             
  Lines        5696    5749     +53     
========================================
+ Hits         3231    3235      +4     
- Misses       2114    2164     +50     
+ Partials      351     350      -1

@ziflex ziflex merged commit 71c246d into master Mar 15, 2019
@ziflex ziflex deleted the feature/#236-cookies branch March 16, 2019 00:03
3timeslazy pushed a commit to 3timeslazy/ferret that referenced this pull request Apr 10, 2019
* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods
3timeslazy pushed a commit to 3timeslazy/ferret that referenced this pull request Apr 10, 2019
author Tim Voronov <[email protected]> 1552622815 -0400
committer Владимир Фетисов <[email protected]> 1554919032 +0300

parent b45f889
author Tim Voronov <[email protected]> 1552622815 -0400
committer Владимир Фетисов <[email protected]> 1554919029 +0300

Updated style template

Feature/MontFerret#236 cookies (MontFerret#242)

* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods

Updated CHANGELOG

Updated nav example

fix order of arguments (MontFerret#269)

Updated RAND function (MontFerret#271)

* Updated RAND function

* renamed a func

Linter Cleanup (MontFerret#276)

* linter cleanup

* fix default case

Bump github.com/mafredri/cdp from 0.22.0 to 0.23.0 (MontFerret#278)

Bumps [github.com/mafredri/cdp](https://github.com/mafredri/cdp) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/mafredri/cdp/releases)
- [Commits](mafredri/cdp@v0.22.0...v0.23.0)

Signed-off-by: dependabot[bot] <[email protected]>

fix diff
3timeslazy pushed a commit to 3timeslazy/ferret that referenced this pull request Apr 10, 2019
* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods
3timeslazy pushed a commit to 3timeslazy/ferret that referenced this pull request Apr 10, 2019
author Tim Voronov <[email protected]> 1552622815 -0400
committer Владимир Фетисов <[email protected]> 1554919032 +0300

parent b45f889
author Tim Voronov <[email protected]> 1552622815 -0400
committer Владимир Фетисов <[email protected]> 1554919029 +0300

Updated style template

Feature/MontFerret#236 cookies (MontFerret#242)

* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods

Updated CHANGELOG

Updated nav example

fix order of arguments (MontFerret#269)

Updated RAND function (MontFerret#271)

* Updated RAND function

* renamed a func

Linter Cleanup (MontFerret#276)

* linter cleanup

* fix default case

Bump github.com/mafredri/cdp from 0.22.0 to 0.23.0 (MontFerret#278)

Bumps [github.com/mafredri/cdp](https://github.com/mafredri/cdp) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/mafredri/cdp/releases)
- [Commits](mafredri/cdp@v0.22.0...v0.23.0)

Signed-off-by: dependabot[bot] <[email protected]>

fix diff
@mvrozanti mvrozanti mentioned this pull request Dec 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants