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

No results found... - for any query #163

Open
GregPK opened this issue Aug 28, 2019 · 14 comments

Comments

@GregPK
Copy link

commented Aug 28, 2019

Issuehunt badges

Tried a bunch of queries but even the reference one does not seem to work:

gregpk[10:58] ~ ☞ socli for loop in python syntax
No results found...
gregpk[11:01] ~ ☞ socli -iq while loop in python
No results found...

Using socli-3.9 installed via pip.


IssueHunt Summary

Backers (Total: $10.00)

Become a backer now!

Or submit a pull request to get the deposits!

Tips


IssueHunt has been backed by the following sponsors. Become a sponsor

@github-actions

This comment has been minimized.

Copy link

commented Aug 28, 2019

Thanks for reporting your first issue to SoCLI. We really value your feedback.

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 3, 2019

Is this open ?

@gautamkrishnar

This comment has been minimized.

Copy link
Owner

commented Sep 3, 2019

@isaac-philip can you please look into it and verify whether the issue exists. If it is please comment on this issue. you can start working on it if you are interested.

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 5, 2019

Yes seems to be, I am also not getting any response for same set of inputs mentioned in issue.
I will take this up, thanks!

@gautamkrishnar

This comment has been minimized.

Copy link
Owner

commented Sep 5, 2019

@issuehunt-app

This comment has been minimized.

Copy link

commented Sep 5, 2019

@issuehunt has funded $10.00 to this issue.


@isaac-philip

This comment has been minimized.

Copy link

commented Sep 5, 2019

@isaac-philip please make sure that you use https://github.com/gautamkrishnar/socli/tree/refactoring branch

noted

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 8, 2019

getting error in having same module name - socli under package - socli
clashing imports ?

Bunch of errors I could get in Python-3.6 are,

Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socli.user
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File " /Development/github/socli/socli/user.py", line 8, in <module>
    import socli.printer as pr
  File " /Development/github/socli/socli/printer.py", line 14, in <module>
    from socli import search as search, tui as tui
  File " /Development/github/socli/socli/search.py", line 15, in <module>
    import socli.tui
  File " /Development/github/socli/socli/tui.py", line 9, in <module>
    import socli.printer as pr
AttributeError: module 'socli' has no attribute 'printer'

Other similar errors depending on which package i would try to import or run.

would like to move the entire contents of socli into __main__ and no issues would be there.
Then can just delete that module - socli.py

Let me know if thats ok and I am bit confused how things were executing till now?

Maybe I am doing something wrong ?

@gautamkrishnar

This comment has been minimized.

Copy link
Owner

commented Sep 8, 2019

@isaac-philip dont use python sheel use python interpreter.
you can run socli by the following command if you are in the project folder:

python -m socli

You can also try in in the shell by appending the path manually. Please see #162 by @anirudnits

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 8, 2019

Ok sure, yes i didn't wanna add path manually.

I can execute locally as you said and will go ahead without any path appending.

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 14, 2019

just to give an update, working on it, should expect a commit by tomorrow.

@gautamkrishnar

This comment has been minimized.

Copy link
Owner

commented Sep 14, 2019

@isaac-philip thanks a lot 👍 please dont forget to submit it on issuehunt https://issuehunt.io/r/gautamkrishnar/socli/issues/163

isaac-philip added a commit to isaac-philip/socli that referenced this issue Sep 15, 2019
WIP :
Changed mention of palette to remove module

	: socli/printer.py

Added various WIP commands to find the reason and solution for not getting results at times

	: socli/search.py

HTML file which is expected and the search funtion is optimized to search and retrieve data from it

	: socli/html_result_expected.html

HTML file which at times is retrieved and the program breaks due to non compliance of search

	: socli/html_result_at_times.html

This is WIP since require some feedback and direction.

References gautamkrishnar#163
@isaac-philip

This comment has been minimized.

Copy link

commented Sep 16, 2019

Hey @gautamkrishnar , please checkout and run my committed code.

I have commiteed for direction since the results are random.

What happens is that after a fresh hit to the api, after few hits the result received is not as per our expectation.

Two searches are tuned to the expected html (in the commit - html_result_expected.html)

  1. the number of question/answers - i.e. div: class_=g
  2. the question/desc within each of the above div

The question/desc I could improve and that seems to be a definite part of the future commit.

I looked to utilize retries and cookies but both don't seem that much of a difference to me.

Using cookies can be beneficial but my code debugs with retries does not yield any difference.

Its like when the google search api decides to give out the other set of html it will give it for a period of say 3-4 minutes till it reverts back to our expected html.

The retries placed in search are just for debugginng now since it doesn't yield any differennt results and only makes Google search complain that we are sending many calls/traffic.

Please advise on the direction that I should employ after you checkout and have a run to better understand my view.

@isaac-philip

This comment has been minimized.

Copy link

commented Sep 18, 2019

Hello @gautamkrishnar, just messaging to know if you had a look, no worries can wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.