Compare commits
	
		
			No commits in common. "8d9092af03ecd2500739e927c145c01b491af313" and "69bb8e7d3f422a4f46a91c46b795a879e99c34f2" have entirely different histories.
		
	
	
		
			8d9092af03
			...
			69bb8e7d3f
		
	
		|  | @ -2,7 +2,7 @@ | ||||||
| <module type="PYTHON_MODULE" version="4"> | <module type="PYTHON_MODULE" version="4"> | ||||||
|   <component name="NewModuleRootManager"> |   <component name="NewModuleRootManager"> | ||||||
|     <content url="file://$MODULE_DIR$" /> |     <content url="file://$MODULE_DIR$" /> | ||||||
|     <orderEntry type="jdk" jdkName="Python 3.11" jdkType="Python SDK" /> |     <orderEntry type="jdk" jdkName="Python 3.13" jdkType="Python SDK" /> | ||||||
|     <orderEntry type="sourceFolder" forTests="false" /> |     <orderEntry type="sourceFolder" forTests="false" /> | ||||||
|   </component> |   </component> | ||||||
| </module> | </module> | ||||||
|  | @ -3,5 +3,5 @@ | ||||||
|   <component name="Black"> |   <component name="Black"> | ||||||
|     <option name="sdkName" value="Python 3.13" /> |     <option name="sdkName" value="Python 3.13" /> | ||||||
|   </component> |   </component> | ||||||
|   <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11" project-jdk-type="Python SDK" /> |   <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.13" project-jdk-type="Python SDK" /> | ||||||
| </project> | </project> | ||||||
|  | @ -16,7 +16,6 @@ def tareaUno(): | ||||||
|   return |   return | ||||||
| 
 | 
 | ||||||
| Done = False | Done = False | ||||||
| 
 |  | ||||||
| hilos = list() | hilos = list() | ||||||
| for i in range(50): | for i in range(50): | ||||||
|   t = threading.Thread(target=tareaUno) |   t = threading.Thread(target=tareaUno) | ||||||
|  |  | ||||||
|  | @ -1,3 +0,0 @@ | ||||||
| from ejercicios.paralelismo02.ej01.ej01 import MiScraping |  | ||||||
| 
 |  | ||||||
| hilo = MiScraping("") |  | ||||||
|  | @ -1,20 +0,0 @@ | ||||||
| import threading |  | ||||||
| import requests |  | ||||||
| from bs4 import BeautifulSoup |  | ||||||
| import re |  | ||||||
| 
 |  | ||||||
| class MiScraping(threading.Thread): |  | ||||||
|     def __init__(self,url): |  | ||||||
|         threading.Thread.__init__(self) |  | ||||||
|         self.url = url |  | ||||||
|         self.links =[] |  | ||||||
|     def run(self): |  | ||||||
|         response = requests.get(self.url) |  | ||||||
|         soup = BeautifulSoup(response.text,"html.parser") |  | ||||||
|         self.links = [a['href'] for a in soup.find_all('a', href=True) if re.match(r'http[s]?://', a['href'])] |  | ||||||
|     def get_links(self): |  | ||||||
|         return self.links |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  | @ -1 +1,4 @@ | ||||||
| print("Hello World!") | def my_function(*child): | ||||||
|  |   print("The youngest child is " + child[1]) | ||||||
|  | 
 | ||||||
|  | my_function("a","b") | ||||||
		Loading…
	
		Reference in New Issue