Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get HTML #1

Open
DeveloperSuccess opened this issue Nov 15, 2019 · 1 comment
Open

Can't get HTML #1

DeveloperSuccess opened this issue Nov 15, 2019 · 1 comment

Comments

@DeveloperSuccess
Copy link

Hi, I don't get anything back. No mistakes either, why?

public class MainActivity extends AppCompatActivity {
public TextView textView;
    WebScraper webScraper;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        textView = findViewById(R.id.text);
        textView.setText("ну почему");
       webScraper = new WebScraper(this);
        webScraper.setUserAgentToDesktop(true);
        webScraper.loadURL("https://www.github.com/");
        String html = webScraper.getHtml();
        textView.setText(html);
    }
}
@venky9885
Copy link

please provide complete code

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

No branches or pull requests

2 participants