Skip to content
Snippets Groups Projects
Commit db664a0b authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

remove outdated find_gepettists

parent 55939efb
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env python3
import sys
import requests
from bs4 import BeautifulSoup
URL = "https://www.laas.fr/public/fr/"
def find_in_directory(name):
req = requests.get(URL + "searchuser", {"letter": name})
soup = BeautifulSoup(req.content, "html.parser")
for guy in soup.find("div", class_="personnel").find_all("tr")[1:]:
if "GEPETTO" in guy.text:
return URL + guy.find("a").attrs["href"]
if __name__ == "__main__":
if len(sys.argv) > 1:
print(find_in_directory(sys.argv[1]))
else:
from greet_newcomers import get_gepetto # noqa
for username in get_gepetto():
print(username.center(10), find_in_directory(username[1:]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment