Michael Goode
Newbie
- Aug 7, 2016
- 23
- 2
I'm fairly proficient in python and creating web interfaces. I'm looking for some project ideas to work on publicly which more be of use to someone.
Any ideas?
Any ideas?
I'm just learning python and have hit a roadblock I can't seem to get past. If you have a free minute would you be able to PM me (or post here if against the rules) and help me? I just need helping figuring out the right xpath/css selector to use for webdriver to select a specific field. The page has a bunch of nested DIVs and nothing I try seems to work. If not, no worries. Take care.I'm fairly proficient in python and creating web interfaces. I'm looking for some project ideas to work on publicly which more be of use to someone.
Any ideas?
@OP if you are bored you could simple build a little application based on python flask bootstrap celery (+rabbitmq) and beautifulsoup/selenium.
Setup e.g. celery worker threads behind tor-network (depending on scraping goal) on a few vps. Main application a microservice with flask and as Frontend a nice bootstrap application (input + dashboard) consuming the services.
Useful for all different kind of stuff![]()
What about a python + selenium bot that makes a bunch of accounts and gets traffics to your offers
1)you'd find a big site with community features. A commenting, profile and following system for example. Then you make scripts that create accounts, follow other accounts, comment links or have links in the profile. You just have to do research to find sites like this that don't have sophisticated anti-spam, but are big enough that your links aren't an easy to find footprintPlease elaborate
Likely it is the same with Facebook as with Google, they always change class names dynamically so on the next page load might all look different.Sure, I'm trying to post to my own facebook page. So I'm trying to access the message box. Here's the code. Let me know if you figure something out. I appreciate your time!
Likely it is the same with Facebook as with Google, they always change class names dynamically so on the next page load might all look different.
Reload few times to see if that is the case here
Mh better to have the actual page, but how aboutExcellent suggestion. I just loaded the page on Microsoft Edge which is something I haven't touched in years (just to ensure no cache). It appears that the class names remain the same when reloaded.
Mh better to have the actual page, but how about
//div[contains(@Class, '_1mf _1mj')]
And from there on no clue what you are trying to get...
Yep, it's basically what I mentioned with class, could be ID, placeholder etc. Point being Google does that for a bunch of their products, when you log in next time all things are different so makes it very hard to make a bot (with simple class/id etc.) Keep looking!Thanks, I've tried it before and receive the error "Message: no such element: Unable to locate element: {"method":"xpath","selector":"//div[contains(@Class, '_1mf _1mj')]"}"
I'm trying to get the text box that would let me type in text to be able to post to my page. It seems facebook has code that rearranges a few things to remove the "Write something..." placeholder text and allows you to enter what you want. I just can't seem to figure out exactly what I need to do to get selenium to mimic this.
Yep, it's basically what I mentioned with class, could be ID, placeholder etc. Point being Google does that for a bunch of their products, when you log in next time all things are different so makes it very hard to make a bot (with simple class/id etc.) Keep looking!
More than likely yes. Most other sites don't change classes etc on each login so you should definitely find it easierlol, I've been trying just about every ID, class name, text, etc that I could find. I've spent 4+ hours with no luck. I think I'm going to take a different approach. I'm going to use a 3rd party site (like h@@tsuite) to handle the posting to the page and I'll just use python/selenium to post to that 3rd party site. That way facebook won't see the script, they'll just see the authorized 3rd party posting on my behalf. The 3rd party site may be easier to figure out too. lol
Appreciate your time.