Hi, so I post around 30 facebook market place ads a month, its a super tideious task and could easily be done by a computer. The issue is, is that facebook has such a weird structure when I inspect elements. the image attached is a example of it, the class names are this weird code, and I cant find any names, ids, on these elements to give to Selenium. at the moment I use py auto GUI + selenium to click around the web page, but this is super hard coded and doesn’t work all the time. so please let me know what you guys recommend

  • grff@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    11 months ago

    I think they do this on purpose so it makes it difficult to do what you are describing

    • arm321@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      yes i thought exactly that, its annoying tho cause I’m not trying to spam or scam lol, I’m genuinely trying to spend less time 😂

  • treesquid@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    11 months ago

    If it was easy to automate, then spammers, scammers and corporate pigfuckers would completely inundate marketplace with so much garbage it would be utterly unusable. Accept that the only reason your 1 Facebook ad per day produces any results at all is because it’s hard to automate, and if it weren’t, nobody would ever see any of your ads. The fact that you’re hunting for IDs instead of page structure patterns already suggests a novice level, so imagine all you needed was awareness that Selenium exists in order to spam Marketplace to death with MLM ads and scam posts. There are already way too many scam posts when a person actually has to interact with the site. If you could easily do what you want, you wouldn’t be able to sell anything, because >99% of content would be bot posts without aggressive content moderation. That moderation would either be human, which is expensive, or automated, which would be very inaccurate and take down more legitimate posts. There’s no world where you can legitimately automate this and bad actors can’t.

    If I had an answer that would help you, I would never post it because it would actively degrade everyone’s Marketplace experience, including yours, until FB fixed it and made it hard to automate again.

    • arm321@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      yeah i understand your point completely, and it makes sense why they made it so hard. Thing is that I genuinely post this many ads for my furniture business and all of them are legit. it just sucks cause its so time consuming

      • Nindelofocho@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        11 months ago

        Why not buy Facebook advertising space then? Users looking for furniture on fb marketplace are typically looking for cheap used furniture and occasionally the weird antique to refurbish

    • arm321@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      11 months ago

      its hard coded that way, i really don’t like that approach, one that I use at the moment is py auto gui

  • JustMy2c@lemm.ee
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    Facebook does it utmost best to make it HARD. so yes, auto gui/hotkey-like solutions are probably the only way…