Code Monkey home page Code Monkey logo

socialscan's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dvershinin avatar harveyrandall avatar iojw avatar olddisk avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

socialscan's Issues

Client connector certificate error

Keep getting this error and wondering how to rectify this? Thanks

Firefox: ClientConnectorCertificateError - Cannot connect to host api.accounts.firefox.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '52.89.11.225'. (_ssl.c:1045)")]
GitHub: ClientConnectorCertificateError - Cannot connect to host github.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '13.237.44.5'. (_ssl.c:1045)")]
Instagram: ClientConnectorCertificateError - Cannot connect to host instagram.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '157.240.8.174'. (_ssl.c:1045)")]
Lastfm: ClientConnectorCertificateError - Cannot connect to host www.last.fm:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '151.101.29.188'. (_ssl.c:1045)")]
Pinterest: ClientConnectorCertificateError - Cannot connect to host www.pinterest.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '2.18.52.37'. (_ssl.c:1045)")]
Spotify: ClientConnectorCertificateError - Cannot connect to host spclient.wg.spotify.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '35.186.224.25'. (_ssl.c:1045)")]
Tumblr: ClientConnectorCertificateError - Cannot connect to host tumblr.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '192.0.77.40'. (_ssl.c:1045)")]
Twitter: ClientConnectorCertificateError - Cannot connect to host api.twitter.com:443 ssl:True [SSLCertVerificationError: (1, "[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: IP address mismatch, certificate is not valid for '104.244.42.130'. (_ssl.c:1045)")]

getaddrinfo failed

It was working earlier but now there is an error:
[USERNAME]: ClientConnectorError - Cannot connect to host tumblr.com:443 ssl:default [getaddrinfo failed]

Tests for Spotify rejected when run on Travis CI

The test for Spotify when run on Travis CI because Spotify views these requests as coming through a proxy and rejects them. There does not seem to be any way of changing the configuration of how tests on Travis are run currently.

I've marked the related tests as xfail when run on Travis for now. These tests can still be run locally.

only http proxies are supported

Hey again, I'm sorry for making another issue when I've already made one previously, but I can't reopen it so here I am, I've tried to use socialscan as a library and it worked for a while, but I had to reinstall everything after a system format, anyways.
I'm trying to use proxies but it always errors out with "only http proxies are supported", I did try adding http:// before each line, even tried different proxies and different formats and made sure my proxies are http, but still. it always returns that error

Formatting bulk queries

How would you format the bulk queries?

Would you have a list thats just a new word every line, or what is it?

not accurate results

thanks for the tool but i test it on my personal ,mails and it give non accurate results

Installation Issues on Google Shell

Cannot get it to install...seems to fail on SocialScan install....

Try #1
pip install -r requirements.txt
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Collecting requests==2.26.0
Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
ERROR: Could not find a version that satisfies the requirement socialscan==1.4.1 (from -r requirements.txt (line 2)) (from versions: none)
ERROR: No matching distribution found for socialscan==1.4.1 (from -r requirements.txt (line 2))

Try#2
cloudshell:~/mosint$ python3 -m pip install -r requirements.txt
Collecting requests==2.26.0 (from -r requirements.txt (line 1))
Exception:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_internal/cli/base_command.py", line 143, in main
status = self.run(options, args)
File "/usr/lib/python3/dist-packages/pip/_internal/commands/install.py", line 338, in run
resolver.resolve(requirement_set)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 102, in resolve
self._resolve_one(requirement_set, req)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 256, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python3/dist-packages/pip/_internal/resolve.py", line 209, in _get_abstract_dist_for
self.require_hashes
File "/usr/lib/python3/dist-packages/pip/_internal/operations/prepare.py", line 218, in prepare_linked_requirement
req.populate_link(finder, upgrade_allowed, require_hashes)
File "/usr/lib/python3/dist-packages/pip/_internal/req/req_install.py", line 164, in populate_link
self.link = finder.find_requirement(self, upgrade)
File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 572, in find_requirement
all_candidates = self.find_all_candidates(req.name)
File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 534, in find_all_candidates
self._package_versions(page.iter_links(), search)
File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 702, in _package_versions
v = self._link_package_versions(link, search)
File "/usr/lib/python3/dist-packages/pip/_internal/index.py", line 777, in _link_package_versions
support_this_python = check_requires_python(link.requires_python)
File "/usr/lib/python3/dist-packages/pip/_internal/utils/packaging.py", line 33, in check_requires_python
return python_version in requires_python_specifier
File "/usr/share/python-wheels/packaging-19.0-py2.py3-none-any.whl/packaging/specifiers.py", line 676, in contains
return self.contains(item)
File "/usr/share/python-wheels/packaging-19.0-py2.py3-none-any.whl/packaging/specifiers.py", line 681, in contains
item = parse(item)
File "/usr/share/python-wheels/packaging-19.0-py2.py3-none-any.whl/packaging/version.py", line 28, in parse
return Version(version)
File "/usr/share/python-wheels/packaging-19.0-py2.py3-none-any.whl/packaging/version.py", line 219, in init
match = self._regex.search(version)
TypeError: expected string or bytes-like object

KeyError: 'elapsed_s'

Python 3.7
Windows OS

C:\Users\soumendra>socialscan username-2 [email protected]
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\programdata\anaconda3\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "C:\ProgramData\Anaconda3\Scripts\socialscan.exe\__main__.py", line 9, in <module>
  File "c:\programdata\anaconda3\lib\site-packages\socialscan\__main__.py", line 7, in main
    asyncio.run(cli.main())
  File "c:\programdata\anaconda3\lib\asyncio\runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "c:\programdata\anaconda3\lib\asyncio\base_events.py", line 568, in run_until_complete
    return future.result()
  File "c:\programdata\anaconda3\lib\site-packages\socialscan\cli.py", line 86, in main
    for future in tqdm.tqdm(asyncio.as_completed(platform_queries), total=len(platform_queries), disable=args.verbose, leave=False, ncols=BAR_WIDTH, bar_format=BAR_FORMAT):
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 866, in __init__
    self.sp(self.__repr__(elapsed=0))
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 898, in __repr__
    self.bar_format, self.postfix, self.unit_divisor)
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 359, in format_meter
    r_bar = r_bar_user.format(**bar_args)
KeyError: 'elapsed_s'
Exception ignored in: <function tqdm.__del__ at 0x000001D0B4244D90>
Traceback (most recent call last):
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 889, in __del__
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 1095, in close
  File "c:\programdata\anaconda3\lib\site-packages\tqdm\_tqdm.py", line 441, in _decr_instances
  File "c:\programdata\anaconda3\lib\_weakrefset.py", line 109, in remove
KeyError: <weakref at 0x000001D0B3767458; to 'tqdm' at 0x000001D0B42B32B0>
sys:1: RuntimeWarning: coroutine 'query' was never awaited

Proxy

How can I use the proxy?

No module named 'socialscan.util'; 'socialscan' is not a package

I had install SocialScan using this command " pip install socialscan " but still I am getting this error ...

Traceback (most recent call last):
File "C:\Users\lenovo\Desktop\project\email-saga-master\socialscan.py", line 1, in
from socialscan.util import Platforms, sync_execute_queries
File "C:\Users\lenovo\Desktop\project\email-saga-master\socialscan.py", line 1, in
from socialscan.util import Platforms, sync_execute_queries
ModuleNotFoundError: No module named 'socialscan.util'; 'socialscan' is not a package

need help

socialscan --proxy-list proxy_list.txt --platforms tumblr --input 100_queries.txt --view-by platform
Traceback (most recent call last):
File "C:\Users\Lucky\AppData\Local\Programs\Python\Python37\Scripts\socialscan-script.py", line 11, in
load_entry_point('socialscan==1.1.6', 'console_scripts', 'socialscan')()
File "c:\users\lucky\appdata\local\programs\python\python37\lib\site-packages\socialscan_main_.py", line 21, in main
asyncio.run(cli.main())
File "c:\users\lucky\appdata\local\programs\python\python37\lib\asyncio\runners.py", line 43, in run
return loop.run_until_complete(main)
File "c:\users\lucky\appdata\local\programs\python\python37\lib\asyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "c:\users\lucky\appdata\local\programs\python\python37\lib\site-packages\socialscan\cli.py", line 70, in main
with open(args.proxy_list, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'proxy_list.txt'

Adding new platforms

This serves as the central issue for tracking the progress of adding new platforms to this tool. I've grouped them into a few categories.

Doable

I've researched into these platforms and they can be added to socialscan. Adding these in will take time so I try to add them in based on priority once I have the time.

  • Paypal email
  • Last.fm
  • about.me

Feel free to send in a PR if you are able to implement any of these platforms.

To research

This platforms will need to be investigated to see if they can be added into socialscan:

Feel free to comment if you have done any research or have any information regarding how to query these platforms.

Not adding

These platforms will not be added into socialscan because their current implementation does not allow socialscan to easily query them:

Email: GitLab, Reddit
Username: Spotify, Pinterest

Related issues: #1, #6

not working

hi just cloned and tried to use the tool today. It does not work.


           jasonlkh

Lastfm
GitHub
GitLab
Reddit
Tumblr
Twitter
Yahoo
Instagram: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.
Snapchat: KeyError - 'reference'

Instagram QueryError

Using socialscan I get repeatedly the error:
Instagram: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.

Using a proxy, doesn't solve the issue, as only http proxies supported at the moment:
Instagram: ClientConnectorCertificateError - Cannot connect to host www.instagram.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1076)')]
Proxy used:
http://80.187.140.26:8080

Instagram: QueryError

When I run socialscan, always get this:
Instagram: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.

Connection timeout to host https://tumblr.com/register

I don't know why this happens but the site "https://tumblr.com/register" is still accessible to my browser. I tried to wait for a couple of days/weeks and this still happens.

There are two different errors:

[USERNAME]: Connection timeout to host https://tumblr.com/register

[USERNAME]: Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.


I tried to use well-working proxies by trying to run it on browser one by one, and then I tried to use it to SocialScan but this is the output logs:


             Tumblr

30goalsedu: ServerTimeoutError - Connection timeout to host https://tumblr.com/register
7docilechainshattersthevoid: ServerDisconnectedError -
99media: ClientProxyConnectionError - Cannot connect to host 193.193.224.170:3128 ssl:default [Connect call failed ('193.193.224.170', 3128)]
acentricmag: ClientHttpProxyError - 400, message='Bad Request', url=URL('http://35.234.46.196:8080')
adrturz: ServerTimeoutError - Connection timeout to host https://tumblr.com/register
ainaleonievera: ClientProxyConnectionError - Cannot connect to host 95.47.255.181:3128 ssl:default [Connect call failed ('95.47.255.181', 3128)]
aldochaconphotographer: ClientHttpProxyError - 400, message='Bad Request', url=URL('http://47.91.153.45:80')
alexzimmerportfolio: ServerTimeoutError - Connection timeout to host https://tumblr.com/register
aliceindrugsworld: ClientHttpProxyError - 400, message='Bad Request', url=URL('http://118.179.223.130:80')
alisemorales: ServerDisconnectedError -
alpestris-flowers: ClientHttpProxyError - 400, message='Bad Request', url=URL('http://85.84.14.9:80')
alphachiomegaunlblog: ServerDisconnectedError -
alwaysreadhello: ClientHttpProxyError - 400, message='Bad Request', url=URL('http://47.243.22.216:80')
alyssaking9583: ServerTimeoutError - Connection timeout to host https://tumblr.com/register
angelic-kouhai: ClientOSError - [WinError 10054] An existing connection was forcibly closed by the remote host
anteaterlovestories: ServerDisconnectedError -

Available, Taken/Reserved, Invalid, Error
Completed 16 queries in 15.26s

Platform rate limits

While the asynchronous code can handle a large number of queries, platforms have rate limits to control traffic on their sites and this leads to errors when too many queries are executed with socialscan. From my testing, GH, Reddit, Snapchat and Instagram tend to fail when handling a large number of queries in a short time.

There's support for proxy lists which can help bypass these, but it might be good to look into building a way of getting past these limits into the tool itself. (I think this has to be handled responsibly so as to not open the tool up for abuse)

RuntimeWarning: coroutine 'execute_queries' was never awaited

Hello, I'm writing a Discord bot command.

@commands.command(aliases=["sscan"])
async def socialscan(self, ctx, account):
    results = sync_execute_queries([account], config.PLATFORMS)

    embed = discord.Embed()
    embed.description = "\n".join(
        [
            "{} on {}: `{} (Success: {}, Valid: {}, Available: {})`".format(
                r.query,
                r.platform,
                r.message,
                r.success,
                r.valid,
                r.available,
            )
            for r in results
        ]
    )

    await ctx.send(embed=embed)

Error message:

In socialscan:
  File "/home/adil/.local/lib/python3.9/site-packages/discord/ext/commands/core.py", line 114, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/adil/Projects/ymybot-rw/cogs/api.py", line 24, in socialscan
    results = sync_execute_queries(accounts, config.PLATFORMS)
  File "/usr/local/lib/python3.9/dist-packages/socialscan/util.py", line 85, in sync_execute_queries
    return asyncio.run(execute_queries(queries, platforms, proxy_list))
  File "/usr/lib/python3.9/asyncio/runners.py", line 33, in run
    raise RuntimeError(
RuntimeError: asyncio.run() cannot be called from a running event loop
/usr/lib/python3.9/asyncio/events.py:80: RuntimeWarning: coroutine 'execute_queries' was never awaited
  self._context.run(self._callback, *self._args)
RuntimeWarning: Enable tracemalloc to get the object allocation traceback

TypeError: _request() got an unexpected keyword argument 'cookies'

I get the following when trying to run socialscan username-2

 27%|████████▍                      | 3/11 [0.19s]SSL error in data received
protocol: <asyncio.sslproto.SSLProtocol object at 0x7f4e2ca5a1d0>
transport: <_SelectorSocketTransport fd=11 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 526, in data_received
    ssldata, appdata = self._sslpipe.feed_ssldata(data)
  File "/usr/lib/python3.7/asyncio/sslproto.py", line 207, in feed_ssldata
    self._sslobj.unwrap()
  File "/usr/lib/python3.7/ssl.py", line 767, in unwrap
    return self._sslobj.shutdown()
ssl.SSLError: [SSL: KRB5_S_INIT] application data after close notify (_ssl.c:2592)
Traceback (most recent call last):                
  File "/usr/bin/socialscan", line 11, in <module>
    load_entry_point('socialscan==0.1.1', 'console_scripts', 'socialscan')()
  File "/usr/lib/python3.7/site-packages/socialscan/__main__.py", line 7, in main
    asyncio.run(cli.main())
  File "/usr/lib/python3.7/asyncio/runners.py", line 43, in run
    return loop.run_until_complete(main)
  File "/usr/lib/python3.7/asyncio/base_events.py", line 573, in run_until_complete
    return future.result()
  File "/usr/lib/python3.7/site-packages/socialscan/cli.py", line 87, in main
    platform_response = await future
  File "/usr/lib/python3.7/asyncio/tasks.py", line 533, in _wait_for_one
    return f.result()  # May raise f.exception().
  File "/usr/lib/python3.7/site-packages/socialscan/util.py", line 31, in query
    response = await checkers[platform].check_username(query_str)
  File "/usr/lib/python3.7/site-packages/socialscan/platforms.py", line 237, in check_username
    cookies=cookies) as r:
  File "/usr/lib/python3.7/site-packages/socialscan/platforms.py", line 107, in post
    return self._request("POST", url, **kwargs)
  File "/usr/lib/python3.7/site-packages/socialscan/platforms.py", line 104, in _request
    return self.session.request(method, url, timeout=self.client_timeout, proxy=proxy, **kwargs)
  File "/usr/lib/python3.7/site-packages/aiohttp/client.py", line 223, in request
    return _RequestContextManager(self._request(method, url, **kwargs))
TypeError: _request() got an unexpected keyword argument 'cookies'

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

pep621
pyproject.toml
pip_setup
setup.py
  • aiohttp >=3.5.0
  • tqdm >=4.31.0
pipenv
Pipfile
  • black ==23.12.1

  • Check this box to trigger a request for Renovate to run again on this repository

updated to v2.0.0; query errors

Getting:

Instagram: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.
Lastfm: QueryError - Could not retrieve token. You might be sending too many requests. Use a proxy or wait before trying again.

RuntimeError: Event loop is closed

script completes but get get exception ignored in <function _ProactorBasePipeTransport.del at 0x0000026C701C83C0> with RuntimeError: Event loop is closed

per service: ClientConnectorCertificateError SSL: CERTIFICATE_VERIFY_FAILED certificate verify failed

Not sure what is causing this, but each service check is resulting in a similar certificate error message.
Attempted from both shell command line (e.g."socialscan username") and from within python3 interpreter.
OS: Mac OS X 10.15.2
Python: 3.8.1
Messages:

GitHub: ClientConnectorCertificateError - Cannot connect to host github.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
GitLab: ClientConnectorCertificateError - Cannot connect to host gitlab.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Instagram: ClientConnectorCertificateError - Cannot connect to host instagram.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Lastfm: ClientConnectorCertificateError - Cannot connect to host www.last.fm:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Pastebin: ClientConnectorCertificateError - Cannot connect to host pastebin.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Reddit: ClientConnectorCertificateError - Cannot connect to host www.reddit.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Snapchat: ClientConnectorCertificateError - Cannot connect to host accounts.snapchat.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Tumblr: ClientConnectorCertificateError - Cannot connect to host tumblr.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Twitter: ClientConnectorCertificateError - Cannot connect to host api.twitter.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]
Yahoo: ClientConnectorCertificateError - Cannot connect to host login.yahoo.com:443 ssl:True [SSLCertVerificationError: (1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1108)')]

Using socialscan as a library giving wrong results

I'm trying to use socialscan as a Library, the problem started today out of nowhere as it used to work in the past couple of days, Using socialscan with instagram (haven't tried any other) show's all emails as available even though some of them are not



with open("prefproxy.txt") as prox:    proxies = [i.strip() for i in prox.readlines()]
with open("input.txt") as f:    content = [i.strip() for i in f.readlines()]
c = open('output.txt', 'w')
c.close()

email = content
proxy = proxies
emailList = []
apps = [Platforms.INSTAGRAM]
results = sync_execute_queries(email, apps, proxy)
for result in results:
        try:
                if result.available:
                        print(result.query)
                        emailList.append(result.query)
                        with open("output.txt", "w") as f2:
                                for ele in emailList:
                                        f2.write(ele + '\n')
                else:
                        pass
        except KeyboardInterrupt:
                print('Interrupted')
                try:
                        sys.exit(0)
                except SystemExit:
                        os._exit(0)

And the input is:




[email protected] #should be not available 
[email protected] #should be available 
[email protected] #available
[email protected] #not
[email protected] #available 
[email protected] #available 

While using socialscan, the tool gives accurate results, im not sure if its my file or?

RuntimeError: Event loop is closed

When running on Windows with Python 3.8, the following exception is thrown after the results of socialscan are printed.

Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x03F71DA8>
Traceback (most recent call last):
  File "c:\users\isaac\appdata\local\programs\python\python38-32\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "c:\users\isaac\appdata\local\programs\python\python38-32\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "c:\users\isaac\appdata\local\programs\python\python38-32\lib\asyncio\base_events.py", line 711, in call_soon
    self._check_closed()
  File "c:\users\isaac\appdata\local\programs\python\python38-32\lib\asyncio\base_events.py", line 504, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

As far as I can tell, this is due to the change whereby Python 3.8 now uses ProactorEventLoop as the default event loop on Windows which causes this exception to be thrown in aiohttp. A fix appears to be scheduled for the next release of aiohttp (aio-libs/aiohttp#4324).

Proxy issues

Hi, sorry I already asked on one of the closed issues but i wanted to ask as a new issue. I am having proxy issues in my code, I am using free proxy servers that I have gathered but even though I have tried what you have suggested (and they are http) I am getting server timeout error.
When I make my array like this,


proxyList = [
"http://178.128.178.169:3128",
"http://167.99.163.146:3128",
"http://167.172.203.244:8118"
]

I get server timeout error. If I make my array like this,


proxyList = [
"178.128.178.169:3128",
"167.99.163.146:3128",
"167.172.203.244:8118"
]

I get invalid url error.
What am i doing wrong here, can you please help me?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.