Python - Cookies & BeautifulSoup

864 views Asked by At

I wrote a simple python script that authenticates to a website, gets the cookie write it to a file and do some scrapping at the website. I'm writting the cookie to a file so, I can reuse it and don't need to authenticate my self over and over.

At my personal computer the script works fine. Although when I upload it to my server it refuse to work.

The most strange part is if I upload the cookie created at my personal computer to the my server it will work fine. Of course, I have some issues at the function that saves the cookie...

As far I as know if I have library issues Python would warm me about it, so I guess my problem is much more complex.

I also tried to run as a root, but no lucky.

What do you think may be causing this stuff?

BTW: All pythons are 2.7

Refer to tags to more infos

0

There are 0 answers