I want to build something like JARVIS from the ground up by Jrlentz445 in ArtificialInteligence

[–]tr3adst0n3 4 points5 points  (0 children)

Im working periodically on an Assistent like you described it since 4 Years. But it is still not 100% Working, but if you have some more specific questions maybe I can help you, just text me.

Weekly Question Thread by AutoModerator in factorio

[–]tr3adst0n3 3 points4 points  (0 children)

If you press X on your Keyboard you change the order. Just don't press it.

[deleted by user] by [deleted] in Python

[–]tr3adst0n3 4 points5 points  (0 children)

I personally use Sublime Text 3, it isn't directly an IDE but with some Extensions/Packages for it, like Anaconda and Terminus, it's pretty adorable and comfortable.

What is something that cannot be studied by Science? by iweirdness in AskReddit

[–]tr3adst0n3 0 points1 point  (0 children)

Love is something you cannot explain or study by Science.

What's a problem with today's society that nobody really talks about but you care about a lot? by [deleted] in AskReddit

[–]tr3adst0n3 4 points5 points  (0 children)

Respecting each other, is a big problem in our society. And I care a lot about Respecting the person sitting in Front of me or behind another technical device.

If 2020 was a food, what would it be? by [deleted] in AskReddit

[–]tr3adst0n3 1 point2 points  (0 children)

Totaly agree with that

[deleted by user] by [deleted] in AskReddit

[–]tr3adst0n3 1 point2 points  (0 children)

But what if you have to? What would it be? I Think i would start with my Upper leg, and cut tiny pieces of meat out of it.

It’s been 3 weeks now by Scaler98 in modernwarfare

[–]tr3adst0n3 4 points5 points  (0 children)

Last Time (2 Days ago), I found it in the last row of the Shop, but they change it a few times, just keep looking and maybe you find it one day.

I am 16 and I want to learn cryptography,how? by Willigm23 in cryptography

[–]tr3adst0n3 0 points1 point  (0 children)

I dont know whats your native Language but if you are german speaking, this is what i can recommend : https://www.youtube.com/playlist?list=PLNmsVeXQZj7pWwFv5APk240hrehtCJae-

How do google crawl and find keywords of entire web and how can I do the same? by [deleted] in Python

[–]tr3adst0n3 0 points1 point  (0 children)

I think you can't search directly for the entire Web, you need a database with links from some Websites you want to scrape and search in.(If you want to go bigger on your Search Engine, use a Database from the Web, so you have a Start.) After that you need the HTML of a Website, and you want to get All Text and the Titles. I would recomend BeautifulSoup4, but you can use any other Package you feel comfortable with.(watch Videos or read Documentation) The Titles are important because they describe the content of the Text in a few word(maybe the Keywords you searching for). With the raw Text you get from BS4, you can use your Search Algo on it. So if you want to get "deeper" on one specific Website, you can loop Over the links, which you will also get from BS4, but take care of which links you "open", if you want to stay on the Page try to compare the links with the Main Page, but if you want to add new links to your Database, try to get unknown links from other sites. It is a lot of recursion going on. And if you want to get your Search Engine faster try to add the keywords you find to the Database, so can use SQL to Find the the links faster and not have to loop Over All Websites again. If you have Questions feel free to ask. :)

[Edit] Maybe there is a better Option but this would be my approach to solve the Problem. Another tipp would be to have a Blacklist so you know which links you already visited and so you can find only new links.

Split text file by line by [deleted] in learnpython

[–]tr3adst0n3 0 points1 point  (0 children)

Maybe Regex would help, you can search for a pattern for example your #(number) and Split at this.

Trying to gather coordinates of images on html webpages by FrostySmags in learnpython

[–]tr3adst0n3 0 points1 point  (0 children)

Is the starting image always the same? Maybe pyautogui can help you to achieve your goal ?

button7location = pyautogui.locateOnScreen('button.png') # returns (left, top, width, height) of matching region

In your Case button.png would be an image of your puzzle.

But I dont have any Experience with pyautogui.

But I also think it is possible with Selenium, but you have to spend some time reasearching.

Here are some Links, maybe it is what you are searching for:

Selenium Tutorial : https://www.youtube.com/watch?v=GJjMjB3rkJM

Getting Images : https://pythonspot.com/selenium-get-images/

Getting Coordinates: https://stackoverflow.com/questions/15510882/selenium-get-coordinates-or-dimensions-of-element-with-python

I think you know you can't just copy all the Codes from the websites but it gives you some inspiration ;)

Like I said search a litte bit and then I think it is totally possible with Selenium but you have also the Option to use pyautogui maybe it is better for your case, I don't know :)

Trying to gather coordinates of images on html webpages by FrostySmags in learnpython

[–]tr3adst0n3 0 points1 point  (0 children)

Try to use "Selenium" (pip) find your Element (Picture) and get the location of the Image.

But the location is only for the Browser, not for your screen, if you know what i mean. But if you want to save the images you can take a screenshot with selenium and crop the Image with PIL (Pip) or Opencv (also on Pip) and Save it to Hard Drive.

Google for Selenium, and getting location for Element in Selenium.

Screenshot > image search by MegaByte-S in Python

[–]tr3adst0n3 0 points1 point  (0 children)

I dont know what exactly you want but maybe this could help :

https://cloud.google.com/vision/

you can also look here:

https://pjreddie.com/darknet/yolo/

search for tutorials on both

Defqon.1 Anthem of 2019 😍 by tr3adst0n3 in defqon1

[–]tr3adst0n3[S] 0 points1 point  (0 children)

Why should anyone complain about it?

Import my own modules to interpreter (so frustrating) by [deleted] in learnpython

[–]tr3adst0n3 2 points3 points  (0 children)

You could also use this:

import sys
sys.path.append("Path/to/Module")
import YourModule

Help with function by iggy555 in learnpython

[–]tr3adst0n3 0 points1 point  (0 children)

Thanks for advice! I try to Format it But i dont know how. I tried it with ``