SenorKarlos / intelwatcher

Ingress Intel Portal Information Collector - For Educational Purposes Only
12 stars 11 forks source link

several fixes for autologin - new selenium and xpath #8

Closed ReuschelCGN closed 2 years ago

acocalypso commented 2 years ago

I just checked out this pr and got the following issue:

aco@v220220315612181906:~/intelwatcher$ ../intelwatcher_venv/bin/python3 intel_watcher.py
Traceback (most recent call last):
  File "intel_watcher.py", line 15, in <module>
    from intelwatcher.get_cookie import mechanize_cookie, selenium_cookie
  File "/home/aco/intelwatcher/intelwatcher/get_cookie.py", line 212
    driver.find_element("xpath", "//div[@id="dashboard_container"]//a[@class="button_link" and contains(text(), "Facebook")]").click()
                                             ^
SyntaxError: invalid syntax
ccev commented 2 years ago

I think you would be better off removing Dockerfile and docker-compose.yml alltogether. That's exceeds the scope of this PR.

acocalypso commented 2 years ago

Login with Facebook seems to work.

While scraping this issue occurs:


'IntelMap' object has no attribute 'r'
Traceback (most recent call last):
  File "/home/aco/intelwatcher/intelwatcher/ingress.py", line 136, in
scrape_tiles
    result = self.r.post("https://intel.ingress.com/r/getEntities",
json=data, headers=self.headers,
AttributeError: 'IntelMap' object has no attribute 'r'```
Fabio1988 commented 2 years ago

Login with Facebook seems to work.

While scraping this issue occurs:

'IntelMap' object has no attribute 'r'
Traceback (most recent call last):
  File "/home/aco/intelwatcher/intelwatcher/ingress.py", line 136, in
scrape_tiles
    result = self.r.post("https://intel.ingress.com/r/getEntities",
json=data, headers=self.headers,
AttributeError: 'IntelMap' object has no attribute 'r'```

Exact same error, with or without docker execution. https://github.com/SenorKarlos/intelwatcher/blob/b54931d8176775fe2c24e35d008d75e347bc4654/intelwatcher/ingress.py#L136

acocalypso commented 2 years ago

cookie issue? My cookie looks different ad when I get it manually.

acocalypso commented 2 years ago

Google Login with selenium and Chrome (no docker) is working fine for me