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

crawler #254

Open
Army-Of-ShadowS opened this issue Dec 14, 2019 · 0 comments
Open

crawler #254

Army-Of-ShadowS opened this issue Dec 14, 2019 · 0 comments

Comments

@Army-Of-ShadowS
Copy link

hi
wاen i run this cod ، It takes about 0.7 seconds to transmit and display information to me
My question is ، is there a way to get this information faster than this time?

import requests
from bs4 import BeautifulSoup

page = requests.get('https://www.bls.gov/ces/')
soup = BeautifulSoup(page.content,'html.parser')
locator = 'div h4 a'
tag = soup.select_one(locator)
tag_s = tag.attrs['title']
print(tag_s)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant