Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Add Instagram Community Guidelines #9

Merged
merged 13 commits into from
Mar 15, 2022
Merged

Conversation

clementbiron
Copy link
Member

@clementbiron clementbiron commented Mar 15, 2022

Encountered problems:

  1. I can't find a solution to recover the contents of the Community Guidelines - Misinformation accordion from this URLhttps://fr-fr.facebook.com/help/instagram/1735798276553028/ (linked from the Community Guidelines index).

With the following declaration i get only the accordion sections titles because the relative content is loaded dynamically.

 "Community Guidelines - Misinformation": {
      "fetch": "https://fr-fr.facebook.com/help/instagram/1735798276553028/",
      "select": ["div[role=\"main\"]"],
      "executeClientScripts": true
    }

Note that each section of this Misinformation document is accessible via a dictinctive URL:

  1. Meta seems to have a protection against too frequent http calls and after a while I get stuck on a Facebook login page. For exemple, this is a screenshot of my local Community Guidelines - Hate Speech snapshot.

image

  1. I don't find some document URL in the Instagram help center:
  • Community Guidelines - Inauthentic Behaviour and Platform Manipulation
  • Community Guidelines - Privacy Violations
  • Community Guidelines - Deceased Users

@clementbiron clementbiron requested a review from Ndpnt March 15, 2022 15:00
@clementbiron clementbiron marked this pull request as ready for review March 15, 2022 15:02
@Ndpnt
Copy link
Member

Ndpnt commented Mar 15, 2022

With the following declaration i get only the accordion sections titles because the relative content is loaded dynamically.

It makes me think it may be a good idea (or a bad, I don't know for now) to allow specifying some interactions when we use "executeClientScripts": true. In this case it may allow to click on the accordion sections titles, before saving the content.
It could be something like:

    "Community Guidelines - Intellectual Property": {
      "fetch": "https://help.instagram.com/126382350847838",
      "select": ["div[role=\"main\"]"],
      "remove": [
        "div[aria-label=\"Copier le lien\"]",
        "[id='Articles connexes']",
        "fieldset"
      ],
      "filter": ["removeTrackingIDs"],
      "executeClientScripts": true,
      "interact": [
        { "click": "#sectionTitle1" },
        { "click": "#sectionTitle2" }
      ]
    },

This could perhaps unblock us in certain situations.

(@MattiSG: just to share this idea with you)

@Ndpnt Ndpnt force-pushed the add_instagram_community_guidelines branch from a3eb583 to 87a5c31 Compare March 15, 2022 15:41
@Ndpnt Ndpnt merged commit 22de9e8 into main Mar 15, 2022
@MattiSG MattiSG deleted the add_instagram_community_guidelines branch March 15, 2022 15:55
@MattiSG
Copy link
Member

MattiSG commented Mar 15, 2022

Thanks. I hope to postpone this complexity for as long as possible, but we will probably have to end up handling it one day.

"select": ["._9nrm", "._9q49", "._9p7c"],
"remove": ["._9p72", "svg", "._9ooi", "._9q3_"]
},
"Community Guidelines - Intellectual Property": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Copyright Policy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mmh no sorry, there is no such type… I mixed it up with Copyright Claims Policy 🙃

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #12

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

Successfully merging this pull request may close these issues.

3 participants