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

"Check for Cookies (if it's even possible)" #19

Open
betaglop opened this issue Feb 5, 2019 · 0 comments
Open

"Check for Cookies (if it's even possible)" #19

betaglop opened this issue Feb 5, 2019 · 0 comments

Comments

@betaglop
Copy link

betaglop commented Feb 5, 2019

I'd like to automate Cookies detection and GDPR compliance evaluation (record-keeping, eg. 13 month for Cookies in France).

I'd like to get back informations about cookies and cookies record-keeping policies on the targeted website. It's easy to do that using bash (I've already written something that way), so I'd like to see it in this tool, maybe by contributing...

Eg. using bash:

FILE=/path/to/cookies/file
wget --save-cookies $FILE [URL]
MONTH13=34164000  # nb of seconds in 13 month
for epoch in `cat $FILE | grep -v '^#' | grep -v '^$' | cut -d"  " -f5`
do
    if [ $epoch -gt `echo \`date +%s\` + $MONTH13 | bc` ]
    then
        DATE=`date --date=@$epoch`
        echo "- KO: $DATE"
        continue;
    fi
    
    echo -n "- OK: "
    date --date=@$epoch
done
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

No branches or pull requests

1 participant