Closed Erioldoesdesign closed 4 years ago
Came across a project called Twint, it doesn't need an API key and can do tweet scraping, just thought I'd share in case it's helpful.
Hi @hyperhitesh twint is not something we can use at the time. The Twitter ToS prohibits scrapping without explicit consent from Twitter, so we cannot use it. Thanks anyway for the recommendation! :)
Hi @rowasc, I will like to be assigned this issue. I need help with this issue. It is quite straight forward and the hint is a lot of help. However, I don't seem to find the line of code from where this issue is from. I have gone through the link on the hint and searched all the code files for the text that says "Create a new Twitter application" but I have not found it. Please direct me on where I can find the text so as that I can work on this issue.
Thanks
@Jenniline Thanks for looking into this issue. You find the code for this issue in the datasources-folder: https://github.com/ushahidi/platform-client/tree/develop/app/settings/datasources. What makes it confusing is that the text is coming from the api at this point (https://github.com/ushahidi/platform/blob/develop/src/App/DataSource/Twitter/Twitter.php), so that is why you don't find it :) You could still add the description in the datasource.html-file!
Good luck and reach out if you need more guidanceπ !
@Jenniline are you currently working on this?
Hi @leninpaulino Yes i am currently working on this issue. You can still find more issues on the issue tracker, and keep in mind that Ushahidi has a platform and a platform-client it is good that you set up environment for each because some issues will need you to run the problem and see the behavior before being able to solve. You can reach me if you need help.
Hi @leninpaulino Yes I am. Almost done with it
Nice, I'll try to do the setup and after that, I'll move with something else from the issues. Thanks.
Alright, you can ping me anytime if you need help.
Hi, @Angamanga and @rowasc I have made 2 pull request for this issue. Please review and correct me where necessary
I edited the en.json file as described by @Erioldoesdesign in the problem description. And the Twitter.php file They now display informing new users of the lengthy process of creating a new Twitter application
Do I still need to edit the datasources.html file? Please let me know
Hey @Jenniline I'm gonna comment in the pull request conversation as I have just a few wording tweaks from my perspective of having raised this issue :)
I hope that's okay @Angamanga and @rowasc
@Obadha2 Can you test QA this in Steve Buscemi please? Testing checklist:
@Angamanga @Erioldoesdesign @Jenniline could we have this appearing as two different sets of information such that the second part of the text appears as additional information, italicised perhaps. Rather than a long string of text, have something ilke: Step 1: Create a New Twitter application. Twitter applications may take a few hours or days to be approved by Twitter. Please be aware of this if you need this data quickly.
@Obadha2 Makes sense. I would say it should be located after the text link 'new twitter application' that already exists in the layout in italics:
Ok, I see. @Erioldoesdesign and @Obadha2 will it look better this way?
Step 1: Create a new Twitter application Create a new Twitter application Twitter applications may take a few hours or days to be approved by Twitter. Please be aware of this if you need this data quickly
Is this better?
@Obadha2 Makes sense. I would say it should be located after the text link 'new twitter application' that already exists in the layout in italics:
@Erioldoesdesign with that we'd have the text "Create a new Twitter application" appear twice. I suggest we avoid that? Would this appear better?
Step 1: Create a new Twitter application. Twitter applications may take a few hours or days to be approved by Twitter. Please be aware of this if you need this data quickly
@Jenniline The change @Obadha2 suggests is good. Do you have time to go ahead and change that?
Yes I will @Angamanga Thanks
Hi Anna,
I Have made the changes requested. Here is the link to the Pull request
https://github.com/ushahidi/platform/pull/3858
I made the changes to the Twitter.php file because that was the file I thought needed the changes you mentioned above and since you had already merged the pull requests to the en.json file.
If not please let me know if I should make any more changes to any other files.
Thanks
@Obadha2 Could you recheck in Steve Buscemi? The text should now look like this (had to keep the link in the description because of styling-issues. The link did not look ok as a label/headline):
Alright, this looks good @Angamanga ! π Thanks @Jenniline
When setting up Twitter as a data source our first step that we advise users do is to 'Create a new Twitter application'
Recently Twitter has added a lengthy process to be approved for a twitter application and we could offer new users some more advice as to how to get approved and what Twitter needs to approve.
Links to Twitters application documentation would be useful for users. https://developer.twitter.com/en/apps/create
You also must have a twitter account in order to set up an application and even view the docs.
Is your feature request related to a problem? Please describe. Users would be frustrated if they needed to set up twitter feeds into platform within a short period of time. Especially if they are not familiar with this kind of set up.
Describe the solution you'd like A short description on what a twitter application requires e.g. An existing or new Twitter account preferably linked to your project or organisation, a short description of what kind of twitter information you will gather and what you will do with it,
A short text that reads ' Twitter applications may take a few hours or a few days to be approved by Twitter. Please be aware of this if you need this data quickly'
To reproduce/see this section
To Reproduce Steps to reproduce the behavior:
Task: Adding new descriptions to solve this ticket
Working on this issue
Implementation notes
Fix in https://github.com/ushahidi/platform-client repo
Hint :bulb: The code handling users can be found here: https://github.com/ushahidi/platform-client/tree/develop/app/settings/users
When you are done, π Start a Pull Request. There are two ways how you can start a pull request:
If you are familiar with the terminal or would like to learn it, here is a great tutorial on how to send a pull request using the terminal.
You can also edit files directly in your browser and open a pull request from there.
π When done Ask in comments for a review :)
Want to work on this issue?π
Comment below. If someone else has claimed it, ask if they've opened a pull request already and if they're stuck -- maybe you can help them solve a problem or move it along!
Ping @rowasc if you need help with this issue!