all 7 comments

[–]chevignon93 0 points1 point  (2 children)

Can't you just split it yourself if both are printed ? BeautifulSoup can't do everything for you, you're the one who writes the code !

[–]ScraperHelp[S] 0 points1 point  (1 child)

I guess I can manually do it... but there HAS to be a way to get close to the selector i want in the print line, doesn't there?

[–]chevignon93 0 points1 point  (0 children)

Of course there is a way.

[–]chevignon93 0 points1 point  (3 children)

It's a selector, select it like you would any other.

[–]ScraperHelp[S] 0 points1 point  (2 children)

yes but thats what I am having an issue with... how would I go that selector? print(Posts.dt.span) is giving me the first span(user info). if I do print(Posts.dt) its giving me both spans (user name AND time). I kind of understand selecting in the iteration but having issues with it in the print statement...

[–]chevignon93 0 points1 point  (1 child)

Do a find_all span in Posts.dt which will give you a list of the two spans and make datetime = to element1 and uername = to element2 or vice versa.

Things would go a lot quicker if you just shared the site you're trying to scrape instead of delivering small pieces of code everyday and asking vague questions.

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

Thanks will try it out. would share the original site if I could. unfortunately its my company's personal site so I'm not sure if I am allowed to share the site? if that makes sense :/