Read the Lastest GeekNews here by clicking!
Scratch
Esto es un boceto de un juego desarrollado en scratch.
El archivo es autoejecutable para windows. Esta pensado para aquellos que deseen adquirir soltura con el teclado, algo basico si quieres programar como los profesionales. Eliminen las letras que vayan apareciendo y cuando se cansen presionen escape. Que se diviertan! |
PYTHON
|
Know How.
1 Crea tu dieta de informacion.
2 Formate para crear valor. 3 Lanza tu codigo para obtener Feedback. 4 Trata de tener las herramientas correctas. |
Crawler
Un Web Crawler (también llamado Web Spider)
es un programa diseñado para explorar páginas Web en forma automática.
La operación normal es que se le da al programa un grupo de direcciones
iniciales, el crawler descarga estas direcciones, analiza las páginas y
busca enlaces a páginas nuevas. Luego descarga estas páginas nuevas,
analiza sus enlaces, y así sucesivamente...
##################################### ### ###############################################
####Autor: JoeontheRocks################### ###### #########################################
####Basic Webcrawle################ ### # # #################################################
####http://joeontherocks.weebly.com###### #### ##### ###########################################
#######################################################################################
from urllib import urlopen #import library
def get_page(url): #open url
response = urlopen(url)
contenido_html = response.read()
return contenido_html
def get_next_target_group(page): # link filter
content_html = page
start_link = page.find('<a href=')
start_quote = page.find('www', start_link) # you can change this filter for------> start_quote = page.find('"', start_link)
end_link = page.find ('.com', start_quote) # ------> end_link = page.find ('"', start_quote)
url = page[start_quote: end_link + 4] # ------> url = page[start_quote + 1: end_link]
return url, end_link
return get_next_target_group(page)
def make_list(page): # links in to the list
lst = []
while True:
url, end_link = get_next_target_group(page)
if url:
lst.append(url)
page = page[end_link:]
else:
break
lst = list(set(lst)) # a little bit order
print lst
print 'Number of links is:'
print len(lst) # print the number of links in lst
def print_all_links_groups(page): # print all links in the url
while True:
url, end_link = get_next_target_group(page)
if url:
print url
page = page[end_link:]
break
#Please uncoment to use
make_list(get_page('https://www.yoururl.com')) # --------> introduce your url! order to make list with the links.
print_all_links_groups(get_page('https://www.yoururl.com')) #---------> introduce your url! order to print all links in the url.
####Autor: JoeontheRocks################### ###### #########################################
####Basic Webcrawle################ ### # # #################################################
####http://joeontherocks.weebly.com###### #### ##### ###########################################
#######################################################################################
from urllib import urlopen #import library
def get_page(url): #open url
response = urlopen(url)
contenido_html = response.read()
return contenido_html
def get_next_target_group(page): # link filter
content_html = page
start_link = page.find('<a href=')
start_quote = page.find('www', start_link) # you can change this filter for------> start_quote = page.find('"', start_link)
end_link = page.find ('.com', start_quote) # ------> end_link = page.find ('"', start_quote)
url = page[start_quote: end_link + 4] # ------> url = page[start_quote + 1: end_link]
return url, end_link
return get_next_target_group(page)
def make_list(page): # links in to the list
lst = []
while True:
url, end_link = get_next_target_group(page)
if url:
lst.append(url)
page = page[end_link:]
else:
break
lst = list(set(lst)) # a little bit order
print lst
print 'Number of links is:'
print len(lst) # print the number of links in lst
def print_all_links_groups(page): # print all links in the url
while True:
url, end_link = get_next_target_group(page)
if url:
print url
page = page[end_link:]
break
#Please uncoment to use
make_list(get_page('https://www.yoururl.com')) # --------> introduce your url! order to make list with the links.
print_all_links_groups(get_page('https://www.yoururl.com')) #---------> introduce your url! order to print all links in the url.
Parse hex to mysql and vice versa with python 3
SELECT hex(CAST("Ali" AS VARBINARY)) AS Expr1for vice versa
select CONVERT(varbinary(max), "416C69");
select CONVERT(varbinary(max), "416C69");
40k enviroment
absl-py==1.4.0 aiohttp==3.8.4 aiosignal==1.3.1 alabaster @ file:///home/conda/feedstock_root/build_artifacts/alabaster_1673645646525/work alpaca-trade-api==2.1.0 anyio @ file:///C:/ci/anyio_1644481921011/work/dist argon2-cffi @ file:///opt/conda/conda-bld/argon2-cffi_1645000214183/work argon2-cffi-bindings @ file:///C:/ci/argon2-cffi-bindings_1644551690056/work arrow @ file:///home/conda/feedstock_root/build_artifacts/arrow_1662382474514/work asgiref==3.6.0 astor==0.8.1 astroid @ file:///D:/bld/astroid_1681739471516/work asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1670263926556/work astunparse==1.6.3 async-timeout==4.0.2 atomicwrites @ file:///home/conda/feedstock_root/build_artifacts/atomicwrites_1657325823582/work attrs @ file:///home/conda/feedstock_root/build_artifacts/attrs_1671632566681/work autobahn==22.4.2 autopep8 @ file:///home/conda/feedstock_root/build_artifacts/autopep8_1677845287175/work Babel @ file:///home/conda/feedstock_root/build_artifacts/babel_1677767029043/work backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work bcrypt @ file:///D:/bld/bcrypt_1666831373407/work beautifulsoup4 @ file:///home/conda/feedstock_root/build_artifacts/beautifulsoup4_1680888073205/work binance-connector==1.12.0 binaryornot==0.4.4 black @ file:///D:/bld/black-recipe_1680182942624/work bleach @ file:///home/conda/feedstock_root/build_artifacts/bleach_1674535352125/work bokeh==3.2.0 brotlipy @ file:///D:/bld/brotlipy_1666764815687/work bta-lib==1.0.0 cachetools==5.3.0 certifi @ file:///C:/b/abs_85o_6fm0se/croot/certifi_1671487778835/work/certifi cffi @ file:///D:/bld/cffi_1671179514672/work chardet @ file:///D:/bld/chardet_1669990514596/work charset-normalizer @ file:///home/conda/feedstock_root/build_artifacts/charset-normalizer_1678108872112/work click @ file:///D:/bld/click_1666798499870/work cloudpickle @ file:///home/conda/feedstock_root/build_artifacts/cloudpickle_1674202310934/work colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1666700638685/work coloredlogs==15.0.1 comm @ file:///home/conda/feedstock_root/build_artifacts/comm_1679481329611/work contourpy==1.0.7 convertdate==2.4.0 cookiecutter @ file:///home/conda/feedstock_root/build_artifacts/cookiecutter_1654122127219/work crunch-cli==1.6.1 crunchdao==0.4.0 cryptography @ file:///D:/bld/cryptography-split_1681508776668/work cycler==0.11.0 Cython==0.29.34 dask==2023.6.1 dask-glm==0.2.0 dask-ml==2023.3.24 dask-xgboost==0.2.0 dateparser==1.1.1 debugpy @ file:///D:/bld/debugpy_1680755658559/work decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work defusedxml @ file:///home/conda/feedstock_root/build_artifacts/defusedxml_1615232257335/work deprecation==2.1.0 diff-match-patch @ file:///home/conda/feedstock_root/build_artifacts/diff-match-patch_1594679019945/work dill @ file:///home/conda/feedstock_root/build_artifacts/dill_1666603105584/work distributed==2023.6.1 Django==4.2 django-csv==1.2 django-pandas==0.6.6 djangorestframework==3.14.0 docstring-to-markdown @ file:///home/conda/feedstock_root/build_artifacts/docstring-to-markdown_1679424273982/work docutils @ file:///D:/bld/docutils_1666755090587/work entrypoints @ file:///home/conda/feedstock_root/build_artifacts/entrypoints_1643888246732/work executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1667317341051/work fastjsonschema @ file:///home/conda/feedstock_root/build_artifacts/python-fastjsonschema_1677336799617/work/dist flake8 @ file:///home/conda/feedstock_root/build_artifacts/flake8_1669396691980/work flatbuffers==23.3.3 fonttools==4.39.3 frozenlist==1.3.3 fsspec==2023.6.0 gast==0.4.0 gitignorefile==1.1.2 google-auth==2.17.3 google-auth-oauthlib==1.0.0 google-pasta==0.2.0 grpcio==1.54.0 h5py==3.8.0 hijri-converter==2.2.4 holidays==0.23 humanfriendly==10.0 idna @ file:///home/conda/feedstock_root/build_artifacts/idna_1663625384323/work imagesize @ file:///home/conda/feedstock_root/build_artifacts/imagesize_1656939531508/work imbalanced-learn==0.10.1 imblearn==0.0 importlib-metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1681581693083/work importlib-resources @ file:///home/conda/feedstock_root/build_artifacts/importlib_resources_1676919000169/work inflection @ file:///home/conda/feedstock_root/build_artifacts/inflection_1598089801258/work intervaltree==3.0.2 ipykernel @ file:///D:/bld/ipykernel_1679336472934/work ipython @ file:///D:/bld/ipython_1680185618122/work ipython-genutils==0.2.0 ipywidgets==8.1.0 isort @ file:///home/conda/feedstock_root/build_artifacts/isort_1675033873689/work jaraco.classes @ file:///home/conda/feedstock_root/build_artifacts/jaraco.classes_1667024629799/work jax==0.4.8 jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1669134318875/work jellyfish @ file:///D:/bld/jellyfish_1666945749854/work Jinja2 @ file:///home/conda/feedstock_root/build_artifacts/jinja2_1654302431367/work jinja2-time @ file:///home/conda/feedstock_root/build_artifacts/jinja2-time_1646750632133/work joblib @ file:///home/conda/feedstock_root/build_artifacts/joblib_1663332044897/work json5 @ file:///tmp/build/80754af9/json5_1624432770122/work jsonschema @ file:///home/conda/feedstock_root/build_artifacts/jsonschema-meta_1669810440410/work jupyter==1.0.0 jupyter-console==6.6.3 jupyter-server @ file:///C:/b/abs_1cfi3__jl8/croot/jupyter_server_1671707636383/work jupyter_client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1681432441054/work jupyter_core @ file:///D:/bld/jupyter_core_1678994368923/work jupyterlab @ file:///C:/b/abs_513jt6yy74/croot/jupyterlab_1675354138043/work jupyterlab-pygments @ file:///home/conda/feedstock_root/build_artifacts/jupyterlab_pygments_1649936611996/work jupyterlab-widgets==3.0.8 jupyterlab_server @ file:///C:/b/abs_e0qqsihjvl/croot/jupyterlab_server_1680792526136/work keras==2.12.0 keyring @ file:///D:/bld/keyring_1671728351489/work kiwisolver==1.4.4 korean-lunar-calendar==0.3.1 lazy-object-proxy @ file:///D:/bld/lazy-object-proxy_1672877948175/work libclang==16.0.0 llvmlite==0.40.1 locket==1.0.0 Markdown==3.4.3 MarkupSafe @ file:///D:/bld/markupsafe_1674136063379/work matplotlib==3.7.1 matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1660814786464/work mccabe @ file:///home/conda/feedstock_root/build_artifacts/mccabe_1643049622439/work mistune @ file:///home/conda/feedstock_root/build_artifacts/mistune_1675771498296/work ml-dtypes==0.1.0 mlxtend==0.22.0 more-itertools @ file:///home/conda/feedstock_root/build_artifacts/more-itertools_1677514956219/work mplfinance==0.12.9b0 msgpack==1.0.3 multidict==6.0.4 multipledispatch==1.0.0 mypy-extensions @ file:///home/conda/feedstock_root/build_artifacts/mypy_extensions_1675543315189/work nbclassic @ file:///C:/b/abs_c8_rs7b3zw/croot/nbclassic_1681756186106/work nbclient @ file:///home/conda/feedstock_root/build_artifacts/nbclient_1680676954923/work nbconvert @ file:///home/conda/feedstock_root/build_artifacts/nbconvert-meta_1681137024412/work nbformat @ file:///home/conda/feedstock_root/build_artifacts/nbformat_1679336765223/work nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1664684991461/work networkx==3.1 notebook @ file:///C:/b/abs_49d8mc_lpe/croot/notebook_1681756182078/work notebook_shim @ file:///C:/b/abs_ebfczttg6x/croot/notebook-shim_1668160590914/work numba==0.57.1 numpy==1.23.5 numpydoc @ file:///home/conda/feedstock_root/build_artifacts/numpydoc_1665273484262/work oauthlib==3.2.2 opt-einsum==3.3.0 packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1681337016113/work pandas==1.5.3 pandocfilters @ file:///home/conda/feedstock_root/build_artifacts/pandocfilters_1631603243851/work paramiko @ file:///home/conda/feedstock_root/build_artifacts/paramiko_1678741293886/work parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work partd==1.4.0 pathspec @ file:///home/conda/feedstock_root/build_artifacts/pathspec_1678853982175/work pexpect @ file:///home/conda/feedstock_root/build_artifacts/pexpect_1667297516076/work pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work Pillow==9.5.0 pkgutil_resolve_name @ file:///home/conda/feedstock_root/build_artifacts/pkgutil-resolve-name_1633981968097/work platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1679871349196/work plotly==5.14.1 pluggy @ file:///home/conda/feedstock_root/build_artifacts/pluggy_1667232663820/work ply==3.11 pooch @ file:///home/conda/feedstock_root/build_artifacts/pooch_1679580333621/work prometheus-client @ file:///C:/Windows/TEMP/abs_ab9nx8qb08/croots/recipe/prometheus_client_1659455104602/work prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1677600924538/work protobuf==4.22.3 psutil @ file:///D:/bld/psutil_1667886042967/work ptyprocess @ file:///home/conda/feedstock_root/build_artifacts/ptyprocess_1609419310487/work/dist/ptyprocess-0.7.0-py2.py3-none-any.whl pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work pyarrow==12.0.0 pyasn1==0.5.0 pyasn1-modules==0.3.0 pycodestyle @ file:///home/conda/feedstock_root/build_artifacts/pycodestyle_1669306857274/work pycparser @ file:///home/conda/feedstock_root/build_artifacts/pycparser_1636257122734/work pydocstyle @ file:///home/conda/feedstock_root/build_artifacts/pydocstyle_1673997487070/work pyflakes @ file:///home/conda/feedstock_root/build_artifacts/pyflakes_1669319921641/work Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1681142969746/work pylint @ file:///home/conda/feedstock_root/build_artifacts/pylint_1680721927628/work pylint-venv @ file:///home/conda/feedstock_root/build_artifacts/pylint-venv_1677228547421/work pyls-spyder @ file:///home/conda/feedstock_root/build_artifacts/pyls-spyder_1619747398504/work PyMeeus==0.5.12 PyNaCl @ file:///D:/bld/pynacl_1666862669465/work pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1680037383858/work pyparsing==3.0.9 PyQt5==5.15.7 PyQt5-sip @ file:///D:/bld/pyqt-split_1674666735227/work/pyqt_sip PyQtWebEngine==5.15.4 pyreadline3==3.4.1 pyrsistent @ file:///D:/bld/pyrsistent_1672681644205/work PySocks @ file:///D:/bld/pysocks_1661604991356/work python-binance==1.0.16 python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work python-lsp-black @ file:///home/conda/feedstock_root/build_artifacts/python-lsp-black_1649795569828/work python-lsp-jsonrpc @ file:///home/conda/feedstock_root/build_artifacts/python-lsp-jsonrpc_1618530352985/work python-lsp-server @ file:///home/conda/feedstock_root/build_artifacts/python-lsp-server-meta_1680545288995/work python-slugify @ file:///home/conda/feedstock_root/build_artifacts/python-slugify_1677265108728/work pytoolconfig @ file:///home/conda/feedstock_root/build_artifacts/pytoolconfig_1675124745143/work pytz @ file:///home/conda/feedstock_root/build_artifacts/pytz_1680088766131/work pytz-deprecation-shim==0.1.0.post0 pywin32==304 pywin32-ctypes @ file:///D:/bld/pywin32-ctypes_1666760865566/work pywinpty @ file:///C:/b/abs_73vshmevwq/croot/pywinpty_1677609966356/work/target/wheels/pywinpty-2.0.10-cp39-none-win_amd64.whl PyYAML @ file:///D:/bld/pyyaml_1666772623553/work pyzmq @ file:///D:/bld/pyzmq_1679317071559/work QDarkStyle @ file:///home/conda/feedstock_root/build_artifacts/qdarkstyle_1654095878638/work qstylizer @ file:///home/conda/feedstock_root/build_artifacts/qstylizer_1662244505808/work/dist/qstylizer-0.2.2-py2.py3-none-any.whl QtAwesome @ file:///home/conda/feedstock_root/build_artifacts/qtawesome_1678418951316/work qtconsole @ file:///home/conda/feedstock_root/build_artifacts/qtconsole-base_1680543490292/work QtPy @ file:///home/conda/feedstock_root/build_artifacts/qtpy_1680148448366/work regex==2022.3.2 requests @ file:///home/conda/feedstock_root/build_artifacts/requests_1680286922386/work requests-oauthlib==1.3.1 requirements-parser==0.5.0 rest-pandas==1.1.0 rope @ file:///home/conda/feedstock_root/build_artifacts/rope_1674988456931/work rsa==4.9 Rtree @ file:///D:/bld/rtree_1666812221954/work scikit-learn @ file:///D:/bld/scikit-learn_1679676068685/work scipy==1.10.1 seaborn==0.12.2 Send2Trash @ file:///tmp/build/80754af9/send2trash_1632406701022/work service-identity==21.1.0 sip @ file:///D:/bld/sip_1681161059385/work six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work sniffio @ file:///C:/ci/sniffio_1614030527509/work snowballstemmer @ file:///home/conda/feedstock_root/build_artifacts/snowballstemmer_1637143057757/work sortedcontainers @ file:///home/conda/feedstock_root/build_artifacts/sortedcontainers_1621217038088/work soupsieve @ file:///home/conda/feedstock_root/build_artifacts/soupsieve_1658207591808/work Sphinx @ file:///home/conda/feedstock_root/build_artifacts/sphinx_1673537176449/work sphinxcontrib-applehelp @ file:///home/conda/feedstock_root/build_artifacts/sphinxcontrib-applehelp_1674487779667/work sphinxcontrib-devhelp==1.0.2 sphinxcontrib-htmlhelp @ file:///home/conda/feedstock_root/build_artifacts/sphinxcontrib-htmlhelp_1675256494457/work sphinxcontrib-jsmath==1.0.1 sphinxcontrib-qthelp==1.0.3 sphinxcontrib-serializinghtml @ file:///home/conda/feedstock_root/build_artifacts/sphinxcontrib-serializinghtml_1649380998999/work spyder @ file:///D:/bld/spyder_1680729269897/work spyder-kernels @ file:///D:/bld/spyder-kernels_1680544940746/work sqlparse==0.4.4 stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1669632077133/work sweetviz==2.1.4 tblib==2.0.0 tenacity==8.2.2 tensorboard==2.12.2 tensorboard-data-server==0.7.0 tensorboard-plugin-wit==1.8.1 tensorflow==2.12.0 tensorflow-estimator==2.12.0 tensorflow-intel==2.12.0 tensorflow-io-gcs-filesystem==0.31.0 termcolor==2.3.0 terminado @ file:///C:/b/abs_25nakickad/croot/terminado_1671751845491/work text-unidecode==1.3 textdistance @ file:///home/conda/feedstock_root/build_artifacts/textdistance_1663527496115/work threadpoolctl @ file:///home/conda/feedstock_root/build_artifacts/threadpoolctl_1643647933166/work three-merge @ file:///home/conda/feedstock_root/build_artifacts/three-merge_1595515817927/work tinycss2 @ file:///home/conda/feedstock_root/build_artifacts/tinycss2_1666100256010/work toml @ file:///home/conda/feedstock_root/build_artifacts/toml_1604308577558/work tomli @ file:///home/conda/feedstock_root/build_artifacts/tomli_1644342247877/work tomlkit @ file:///home/conda/feedstock_root/build_artifacts/tomlkit_1679924068997/work toolz==0.12.0 tornado @ file:///D:/bld/tornado_1666788767305/work tqdm==4.65.0 traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1675110562325/work types-setuptools==67.8.0.0 typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1678559861143/work tzdata==2023.3 tzlocal==4.3 ujson @ file:///D:/bld/ujson_1675192101856/work Unidecode @ file:///home/conda/feedstock_root/build_artifacts/unidecode_1664588179651/work urllib3 @ file:///home/conda/feedstock_root/build_artifacts/urllib3_1678635778344/work watchdog @ file:///D:/bld/watchdog_1679333045244/work wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1673864653149/work webencodings==0.5.1 websocket-client @ file:///C:/ci/websocket-client_1614804375980/work websockets==11.0.2 Werkzeug==2.3.2 whatthepatch @ file:///home/conda/feedstock_root/build_artifacts/whatthepatch_1675090462655/work widgetsnbextension==4.0.8 win-inet-pton @ file:///D:/bld/win_inet_pton_1667051142467/work wrapt==1.14.1 xgboost==0.90 # Editable install with no version control (xgboost-app==0.1) -e c:\users\puki-\xgboost_app xyzservices==2023.5.0 yapf @ file:///home/conda/feedstock_root/build_artifacts/yapf_1641487982943/work yarl==1.9.2 zict==3.0.0 zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1677313463193/work Note: you may need to restart the kernel to use updated packages.