workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
I didn't know you could actually override a variable from outside the module. huh...TIL
2019-04-04T21:00:32.469700
Frankie
pythondev_help_Frankie_2019-04-04T21:00:32.469700
1,554,411,632.4697
17,021
pythondev
help
that makes this 1000 times simpler
2019-04-04T21:00:43.469900
Frankie
pythondev_help_Frankie_2019-04-04T21:00:43.469900
1,554,411,643.4699
17,022
pythondev
help
I'm not 100% sure whether you need to import the common module directly to do that, but if you run into trouble, that's something to try.
2019-04-04T21:02:47.470700
Sasha
pythondev_help_Sasha_2019-04-04T21:02:47.470700
1,554,411,767.4707
17,023
pythondev
help
well we're about to find out :slightly_smiling_face:
2019-04-04T21:03:37.470900
Frankie
pythondev_help_Frankie_2019-04-04T21:03:37.470900
1,554,411,817.4709
17,024
pythondev
help
sweeeet it worked!
2019-04-04T21:08:16.471100
Frankie
pythondev_help_Frankie_2019-04-04T21:08:16.471100
1,554,412,096.4711
17,025
pythondev
help
that was simple
2019-04-04T21:08:20.471300
Frankie
pythondev_help_Frankie_2019-04-04T21:08:20.471300
1,554,412,100.4713
17,026
pythondev
help
``` import pyEX import os def landing(request): if os.environ.get('DJANGO_ENV') == 'DEV': pyEX.common._URL_PREFIX2 = '<https://sandbox.iexapis.com/{version}/>' client = pyEX.client.Client('my_token') print(client.quote('aapl')) ```
2019-04-04T21:09:07.471900
Frankie
pythondev_help_Frankie_2019-04-04T21:09:07.471900
1,554,412,147.4719
17,027
pythondev
help
Thanks!
2019-04-04T21:09:42.472100
Frankie
pythondev_help_Frankie_2019-04-04T21:09:42.472100
1,554,412,182.4721
17,028
pythondev
help
"TypeError: Object of type 'int64' is not JSON serializable" has anyone tried the Folium test code and know of a fix? <https://python-graph-gallery.com/313-bubble-map-with-folium/>
2019-04-04T21:16:49.472300
Nola
pythondev_help_Nola_2019-04-04T21:16:49.472300
1,554,412,609.4723
17,029
pythondev
help
Hello, I came across this function called range(), and I realised in the documentation, that there are 2 ways to call the function. 1. range(stop) 2. range(start, stop[, step]) What I don't understand is that in the documentation, it seems like there is 2 function declaration. (or is it a class?) ``` class range(stop) class range(start, stop[, step]) ``` Does python allow repeated function declaration?
2019-04-04T21:26:32.477700
Alishia
pythondev_help_Alishia_2019-04-04T21:26:32.477700
1,554,413,192.4777
17,030
pythondev
help
No, but it does allow optional parameters.
2019-04-04T21:27:10.478000
Sasha
pythondev_help_Sasha_2019-04-04T21:27:10.478000
1,554,413,230.478
17,031
pythondev
help
Hi Ed, in the function declaration, all 3 params for range(start, stop[, step]) are optional
2019-04-04T21:27:52.479100
Alishia
pythondev_help_Alishia_2019-04-04T21:27:52.479100
1,554,413,272.4791
17,032
pythondev
help
since the order is start, stop, step
2019-04-04T21:28:48.480800
Alishia
pythondev_help_Alishia_2019-04-04T21:28:48.480800
1,554,413,328.4808
17,033
pythondev
help
Probably internally it's defined like `def range(first=None, second=None, third=None)` or something arbitrary like that, and the code takes care of figuring out what to do.
2019-04-04T21:29:21.481400
Sasha
pythondev_help_Sasha_2019-04-04T21:29:21.481400
1,554,413,361.4814
17,034
pythondev
help
so it probably checks if second arg is present. and if its present, they set it as the 'stop'?
2019-04-04T21:30:49.482500
Alishia
pythondev_help_Alishia_2019-04-04T21:30:49.482500
1,554,413,449.4825
17,035
pythondev
help
Why does this run fine: ```data = [] df2 = pd.DataFrame() for coin in coins: for num in range(1,11): run = Bitinfo(coin, num) x = run.scraper() df2 = df2.append(x) csv_path = BASE_DIR + f'/data/{coin}/{coin}_{todays_date}.csv' df2.to_csv(csv_path, index=False) df2 = pd.DataFrame()``` And this code: ```data = [] df2 = pd.DataFrame() def main(): for coin in coins: for num in range(1,11): run = Bitinfo(coin, num) x = run.scraper() df2 = df2.append(x) csv_path = BASE_DIR + f'/data/{coin}/{coin}_{todays_date}.csv' df2.to_csv(csv_path, index=False) df2 = pd.DataFrame() if __name__ == "__main__": main() ``` Gets ```line 110, in main df2 = df2.append(x) UnboundLocalError: local variable 'df2' referenced before assignment``` ?
2019-04-04T22:22:25.485100
Conchita
pythondev_help_Conchita_2019-04-04T22:22:25.485100
1,554,416,545.4851
17,036
pythondev
help
You need a `global df2` inside the function if you intend to modify global variables, as opposed to just read them.
2019-04-04T22:34:11.486000
Sasha
pythondev_help_Sasha_2019-04-04T22:34:11.486000
1,554,417,251.486
17,037
pythondev
help
In the first example all the code was executing in the global context instead of inside a function scope.
2019-04-04T22:34:45.486400
Sasha
pythondev_help_Sasha_2019-04-04T22:34:45.486400
1,554,417,285.4864
17,038
pythondev
help
Are you a wizard <@Sasha>? You always seem to have good answers!
2019-04-04T22:41:43.487000
Conchita
pythondev_help_Conchita_2019-04-04T22:41:43.487000
1,554,417,703.487
17,039
pythondev
help
I've just made thousands of errors over the years, including that one. :sweat:
2019-04-04T22:42:39.487600
Sasha
pythondev_help_Sasha_2019-04-04T22:42:39.487600
1,554,417,759.4876
17,040
pythondev
help
I just learned too! :taco: <@Sasha>
2019-04-04T22:52:07.488100
Marth
pythondev_help_Marth_2019-04-04T22:52:07.488100
1,554,418,327.4881
17,041
pythondev
help
BTW, this can be subtle. You only need the `global` if you are *reassigning* the variable. If you are, say, appending an item to a global list, it's still the same list object, so it's not necessary, even though the contents are being modified.
2019-04-04T22:55:22.490000
Sasha
pythondev_help_Sasha_2019-04-04T22:55:22.490000
1,554,418,522.49
17,042
pythondev
help
Is there a function naming convention used by the Python community when you need to make a copy of a function so you can work on significant code changes without breaking existing code?
2019-04-04T23:34:09.491000
Chuck
pythondev_help_Chuck_2019-04-04T23:34:09.491000
1,554,420,849.491
17,043
pythondev
help
Or, perhaps, a convention for doing that that has nothing to with naming?
2019-04-04T23:34:57.491400
Chuck
pythondev_help_Chuck_2019-04-04T23:34:57.491400
1,554,420,897.4914
17,044
pythondev
help
Often that's handled by your source control system, in that you can work on a branch of the code until your change is finalized and ready to be incorporated for release.
2019-04-04T23:39:10.492300
Sasha
pythondev_help_Sasha_2019-04-04T23:39:10.492300
1,554,421,150.4923
17,045
pythondev
help
Normally if I have to do something like that and it doesn't make sense to put it in a branch for development, I have 3 functions: the public function everything else uses, and then two internal functions that the public function calls based on its own logic. One internal function is the old function, and the other is the new function.
2019-04-04T23:44:02.494800
Carmen
pythondev_help_Carmen_2019-04-04T23:44:02.494800
1,554,421,442.4948
17,046
pythondev
help
Hmmm, how often would you branch for a single function rewrite? I guess that depends on the coder
2019-04-04T23:44:17.495300
Chuck
pythondev_help_Chuck_2019-04-04T23:44:17.495300
1,554,421,457.4953
17,047
pythondev
help
<@Carmen> I like that approach
2019-04-04T23:44:28.495900
Chuck
pythondev_help_Chuck_2019-04-04T23:44:28.495900
1,554,421,468.4959
17,048
pythondev
help
Normally you'd use a configuration switch to dictate which internal function gets executed.
2019-04-04T23:44:33.496100
Carmen
pythondev_help_Carmen_2019-04-04T23:44:33.496100
1,554,421,473.4961
17,049
pythondev
help
That also lets you A/B test for specific users.
2019-04-04T23:44:56.496700
Carmen
pythondev_help_Carmen_2019-04-04T23:44:56.496700
1,554,421,496.4967
17,050
pythondev
help
That said, if you're making significant changes, often you really should be doing it on a separate branch so that you can make the switch wholesale.
2019-04-04T23:45:22.497600
Carmen
pythondev_help_Carmen_2019-04-04T23:45:22.497600
1,554,421,522.4976
17,051
pythondev
help
I do need to wrap my brain around creating branches in Git, and absorbing the changes back into my main code base -- even though I'm the only dev and the only user of the code, it would be useful to understand
2019-04-04T23:45:49.498200
Chuck
pythondev_help_Chuck_2019-04-04T23:45:49.498200
1,554,421,549.4982
17,052
pythondev
help
`git checkout &lt;branch name&gt;` `git commit` `git checkout master` `git merge &lt;branch name&gt;`
2019-04-04T23:46:35.498900
Carmen
pythondev_help_Carmen_2019-04-04T23:46:35.498900
1,554,421,595.4989
17,053
pythondev
help
Branches are even easier to create in Git than they are in other source control systems.
2019-04-04T23:47:13.499400
Carmen
pythondev_help_Carmen_2019-04-04T23:47:13.499400
1,554,421,633.4994
17,054
pythondev
help
So... let's say I have a (windows 7) directory called "MyProject" in which my current code resides... How do I work on a branch while also being able to execute the non-branch version of the code?
2019-04-04T23:48:47.500300
Chuck
pythondev_help_Chuck_2019-04-04T23:48:47.500300
1,554,421,727.5003
17,055
pythondev
help
If you want them both to be simultaneously accessible, you'd want to checkout a second copy of your git repo in a different directory.
2019-04-04T23:52:20.501000
Sasha
pythondev_help_Sasha_2019-04-04T23:52:20.501000
1,554,421,940.501
17,056
pythondev
help
Okay, so I could have "MyProject" and "MyProject_Branch". I leave "MyProject" untouched, I work on the code in "MyProject_Branch", and when I'm ready, I merge the changes in "MyProject_Branch" back into "MyProject"...
2019-04-04T23:53:33.502200
Chuck
pythondev_help_Chuck_2019-04-04T23:53:33.502200
1,554,422,013.5022
17,057
pythondev
help
Well, this is only if you need to run them both side-by-side. Any git repo can be on any branch, and can change branches easily.
2019-04-04T23:54:30.503200
Sasha
pythondev_help_Sasha_2019-04-04T23:54:30.503200
1,554,422,070.5032
17,058
pythondev
help
So people typically will just switch back and forth in their main git directory as needed.
2019-04-04T23:57:00.504100
Sasha
pythondev_help_Sasha_2019-04-04T23:57:00.504100
1,554,422,220.5041
17,059
pythondev
help
how do I change between the master and the branch in the same directory?
2019-04-04T23:58:33.504500
Chuck
pythondev_help_Chuck_2019-04-04T23:58:33.504500
1,554,422,313.5045
17,060
pythondev
help
(unless I misunderstood what you meant by this: `So people typically will just switch back and forth in their main git directory as needed.`)
2019-04-04T23:59:16.504900
Chuck
pythondev_help_Chuck_2019-04-04T23:59:16.504900
1,554,422,356.5049
17,061
pythondev
help
The `git checkout [branch]` command that <@Carmen> referenced changes it.
2019-04-05T00:01:32.505700
Sasha
pythondev_help_Sasha_2019-04-05T00:01:32.505700
1,554,422,492.5057
17,062
pythondev
help
okay, here goes
2019-04-05T00:02:58.505900
Chuck
pythondev_help_Chuck_2019-04-05T00:02:58.505900
1,554,422,578.5059
17,063
pythondev
help
Hang on. Don't ever say "okay, here goes" with git. Look up the docs and understand the command, please...
2019-04-05T00:03:58.506500
Sasha
pythondev_help_Sasha_2019-04-05T00:03:58.506500
1,554,422,638.5065
17,064
pythondev
help
lol, good advice :slightly_smiling_face:
2019-04-05T00:04:11.506900
Chuck
pythondev_help_Chuck_2019-04-05T00:04:11.506900
1,554,422,651.5069
17,065
pythondev
help
There's a separate way to create branches, for instance.
2019-04-05T00:04:20.507400
Sasha
pythondev_help_Sasha_2019-04-05T00:04:20.507400
1,554,422,660.5074
17,066
pythondev
help
I never do anything destructive that I can't walk away from :slightly_smiling_face:
2019-04-05T00:04:36.507700
Chuck
pythondev_help_Chuck_2019-04-05T00:04:36.507700
1,554,422,676.5077
17,067
pythondev
help
well... never intentionally... I learned that a few mistakes ago. :wink:
2019-04-05T00:05:45.508200
Chuck
pythondev_help_Chuck_2019-04-05T00:05:45.508200
1,554,422,745.5082
17,068
pythondev
help
Obligatory: <https://ohshitgit.com/>
2019-04-05T00:08:05.508900
Sasha
pythondev_help_Sasha_2019-04-05T00:08:05.508900
1,554,422,885.5089
17,069
pythondev
help
<@Sasha> and <@Carmen> -- thanks both, this was a very useful conversation to me :taco:
2019-04-05T00:08:21.509200
Chuck
pythondev_help_Chuck_2019-04-05T00:08:21.509200
1,554,422,901.5092
17,070
pythondev
help
Do either of you use PyCharm?
2019-04-05T00:12:38.509700
Chuck
pythondev_help_Chuck_2019-04-05T00:12:38.509700
1,554,423,158.5097
17,071
pythondev
help
Just wondering if there is any way in PyCharm to see at a glance which 'branch' you currently have activated
2019-04-05T00:13:06.510300
Chuck
pythondev_help_Chuck_2019-04-05T00:13:06.510300
1,554,423,186.5103
17,072
pythondev
help
ah... bottom right
2019-04-05T00:13:59.510600
Chuck
pythondev_help_Chuck_2019-04-05T00:13:59.510600
1,554,423,239.5106
17,073
pythondev
help
okay, so that went okay... i created a branch, and merged it back into the master -- although I wish it had been a little more guided than throwing conflict text into the source code.
2019-04-05T01:36:32.511700
Chuck
pythondev_help_Chuck_2019-04-05T01:36:32.511700
1,554,428,192.5117
17,074
pythondev
help
I think the only real 'downside' I could see was that the branch changes have to be committed before you can go back to the master, and vice versa -- although this does make sense
2019-04-05T01:37:07.512500
Chuck
pythondev_help_Chuck_2019-04-05T01:37:07.512500
1,554,428,227.5125
17,075
pythondev
help
There's `git stash` if you want to save uncommitted changes temporarily.
2019-04-05T01:37:34.512900
Sasha
pythondev_help_Sasha_2019-04-05T01:37:34.512900
1,554,428,254.5129
17,076
pythondev
help
it looks like PyCharm can do that as well
2019-04-05T01:37:48.513400
Chuck
pythondev_help_Chuck_2019-04-05T01:37:48.513400
1,554,428,268.5134
17,077
pythondev
help
is it normal on a merge that you get all the conflicted code in the source code and then you manually go remove / resolve the conflicts by editing the source?
2019-04-05T01:38:38.514300
Chuck
pythondev_help_Chuck_2019-04-05T01:38:38.514300
1,554,428,318.5143
17,078
pythondev
help
or did I do that part non-optimally?
2019-04-05T01:38:49.514600
Chuck
pythondev_help_Chuck_2019-04-05T01:38:49.514600
1,554,428,329.5146
17,079
pythondev
help
There are graphical tools which can make that friendlier, and if you know you want to keep one version or the other, you can force a "mine or theirs" merge, but yeah, generally the philosophy is that in case of conflict, you want to have human eyes on it.
2019-04-05T01:40:28.515900
Sasha
pythondev_help_Sasha_2019-04-05T01:40:28.515900
1,554,428,428.5159
17,080
pythondev
help
that must be a huge task if you're merging in a lot of changes across a complex project
2019-04-05T01:40:53.516300
Chuck
pythondev_help_Chuck_2019-04-05T01:40:53.516300
1,554,428,453.5163
17,081
pythondev
help
or if you're trying to resolve conflicts from a branch when the master has moved along significantly via other branch merges...
2019-04-05T01:42:00.517600
Chuck
pythondev_help_Chuck_2019-04-05T01:42:00.517600
1,554,428,520.5176
17,082
pythondev
help
Depends. Many changes in large codebases tend to merge without manual intervention, since people aren't editing the same lines simultaneously.
2019-04-05T01:44:42.519900
Sasha
pythondev_help_Sasha_2019-04-05T01:44:42.519900
1,554,428,682.5199
17,083
pythondev
help
Yep, that might have been my mistake... I think I commented out the change I had started on in the 'master' after I created the branch, so there were probably changes outstanding in both
2019-04-05T02:07:43.520800
Chuck
pythondev_help_Chuck_2019-04-05T02:07:43.520800
1,554,430,063.5208
17,084
pythondev
help
<@Sasha> Have another one of :taco:
2019-04-05T02:08:25.521300
Chuck
pythondev_help_Chuck_2019-04-05T02:08:25.521300
1,554,430,105.5213
17,085
pythondev
help
You're absolutely right -- I just tested creating a branch, and merging it back with a known committed master, and no conflicts, just brought the change in from the branch
2019-04-05T02:12:49.522400
Chuck
pythondev_help_Chuck_2019-04-05T02:12:49.522400
1,554,430,369.5224
17,086
pythondev
help
Last question, is it standard to remove branches that have been merged back into the master? or do you leave them there as a history?
2019-04-05T02:13:42.523000
Chuck
pythondev_help_Chuck_2019-04-05T02:13:42.523000
1,554,430,422.523
17,087
pythondev
help
That's a good question, and I'm not quite sure, but I think common best practice would be to remove the branch if you don't plan any further work on it. A branch is basically just a label for a particular commit that shows up in a list of branches, so all the history is preserved either way, and you can recreate it later pointing to the same or a different commit if you want.
2019-04-05T02:20:15.525300
Sasha
pythondev_help_Sasha_2019-04-05T02:20:15.525300
1,554,430,815.5253
17,088
pythondev
help
The exception would be that some people use release branches, so it's useful to keep the "v1.2" release tagged in the repo indefinitely.
2019-04-05T02:21:34.526100
Sasha
pythondev_help_Sasha_2019-04-05T02:21:34.526100
1,554,430,894.5261
17,089
pythondev
help
Fair enough... some conversation on SO seeming to indicate a general consensus to remove merged branches
2019-04-05T02:23:10.526900
Chuck
pythondev_help_Chuck_2019-04-05T02:23:10.526900
1,554,430,990.5269
17,090
pythondev
help
<https://stackoverflow.com/questions/5330145/when-to-delete-branches-in-git>
2019-04-05T02:23:12.527100
Chuck
pythondev_help_Chuck_2019-04-05T02:23:12.527100
1,554,430,992.5271
17,091
pythondev
help
<@Carmen> thanks for your response. I guess I wasn't clear with my question, apologies for that. I have to implement an internal central auth server, which would act as a provider
2019-04-05T02:53:54.527500
Virgil
pythondev_help_Virgil_2019-04-05T02:53:54.527500
1,554,432,834.5275
17,092
pythondev
help
<@Virgil> there is a <#C0LMFRMB5|django> channel in which this question might be better placed
2019-04-05T03:16:17.528800
Chuck
pythondev_help_Chuck_2019-04-05T03:16:17.528800
1,554,434,177.5288
17,093
pythondev
help
Moved
2019-04-05T03:17:11.529200
Virgil
pythondev_help_Virgil_2019-04-05T03:17:11.529200
1,554,434,231.5292
17,094
pythondev
help
Any VS Code gurus out there? I'm really liking the IDE, but sometimes it fails a bit on recognising imports, which flags warnings, and then doesn't format code properly (since it doesn't recognise eg. a model). The code is fine, as it runs OK, it's just display in the IDE itself. I'm using flake8 for linting, intellisense is turned on, jedi is disabled. Any suggestions? I find it really irritating :slightly_smiling_face: Here's an example:
2019-04-05T03:29:11.531400
Chelsey
pythondev_help_Chelsey_2019-04-05T03:29:11.531400
1,554,434,951.5314
17,095
pythondev
help
does the python extension point to the correct virtualenv ?
2019-04-05T03:32:27.532000
Jimmy
pythondev_help_Jimmy_2019-04-05T03:32:27.532000
1,554,435,147.532
17,096
pythondev
help
<@Jimmy>. Yep :slightly_smiling_face: Should have mentioned that as well.
2019-04-05T05:00:06.533100
Chelsey
pythondev_help_Chelsey_2019-04-05T05:00:06.533100
1,554,440,406.5331
17,097
pythondev
help
(If it didn't the rest_framework imports would also be underlined, as it's the only env with that installed...)
2019-04-05T05:00:29.533600
Chelsey
pythondev_help_Chelsey_2019-04-05T05:00:29.533600
1,554,440,429.5336
17,098
pythondev
help
then idk but I think I had the same happens in some projects
2019-04-05T05:01:00.534000
Jimmy
pythondev_help_Jimmy_2019-04-05T05:01:00.534000
1,554,440,460.534
17,099
pythondev
help
That's what I seem to be landing on - that it "just happens" sometimes. Bloody annoying though, and I'm a little compulsive when it comes to warnings and errors, so it really grates :slightly_smiling_face: Hopefully some release in the near future will sort out the intellisense for python ...
2019-04-05T05:17:14.535500
Chelsey
pythondev_help_Chelsey_2019-04-05T05:17:14.535500
1,554,441,434.5355
17,100
pythondev
help
If anybody is interested. I think the problem is that intellisense doesn't recognise my python project directory. I have this kind of setup: ``` root project dir | -&gt; .vscode -&gt; djangoproj |-&gt; Project |-&gt; App1 |-&gt; App2 -&gt; docker-compose.yml -&gt; Dockerfile -&gt; requirements.txt -&gt; etc. ``` Within the project, the code runs fine with `from app1.model import ModelX`, but intellisense thinks it's starting in the root project dir, not in the Django project dir. If I change the line to `from djangoproj.app1.model import ModelX` the intellisense is happy, but of course that doesn't run. I can't find any workspace setting to amend the root directory that intellisense uses to look for modules within the project itself.
2019-04-05T06:04:20.541100
Chelsey
pythondev_help_Chelsey_2019-04-05T06:04:20.541100
1,554,444,260.5411
17,101
pythondev
help
is there a way to get a "complete" picture of a webpage
2019-04-05T06:21:19.543200
Jae
pythondev_help_Jae_2019-04-05T06:21:19.543200
1,554,445,279.5432
17,102
pythondev
help
I tried using selenium package; firefox,chrome webdriver but was unable to get the complete picture
2019-04-05T06:24:59.543900
Jae
pythondev_help_Jae_2019-04-05T06:24:59.543900
1,554,445,499.5439
17,103
pythondev
help
rather could only get a partial one
2019-04-05T06:25:19.544300
Jae
pythondev_help_Jae_2019-04-05T06:25:19.544300
1,554,445,519.5443
17,104
pythondev
help
The two primary approaches I've seen for this are either (1) take one picture, scroll, take another, etc, and then stitch together, or (2) find out the size of the page, resize the browser window to include the full page, and then capture the page
2019-04-05T07:54:32.546500
Wilber
pythondev_help_Wilber_2019-04-05T07:54:32.546500
1,554,450,872.5465
17,105
pythondev
help
something about this line. for i in range(0,len(data)): folium.Circle( location=[data.iloc[i]['lon'], data.iloc[i]['lat']], popup=data.iloc[i]['name'], radius=data.iloc[i]['value']*10000, color='crimson', fill=True, fill_color='red' ).add_to(m)
2019-04-05T07:57:46.546800
Nola
pythondev_help_Nola_2019-04-05T07:57:46.546800
1,554,451,066.5468
17,106
pythondev
help
<@Nola> slack has message formatting you canuse to help readability
2019-04-05T08:19:29.547400
Hiroko
pythondev_help_Hiroko_2019-04-05T08:19:29.547400
1,554,452,369.5474
17,107
pythondev
help
<https://get.slack.help/hc/en-us/articles/202288908-Format-your-messages#inline-code>
2019-04-05T08:19:31.547700
Hiroko
pythondev_help_Hiroko_2019-04-05T08:19:31.547700
1,554,452,371.5477
17,108
pythondev
help
<@Jae> <https://stackoverflow.com/questions/44085722/how-to-get-screenshot-of-full-webpage-using-selenium-and-java>
2019-04-05T08:20:22.548100
Hiroko
pythondev_help_Hiroko_2019-04-05T08:20:22.548100
1,554,452,422.5481
17,109
pythondev
help
I used the same logic in the first answer when using selenium + phantomjs a while back for full page screenshots
2019-04-05T08:20:45.548700
Hiroko
pythondev_help_Hiroko_2019-04-05T08:20:45.548700
1,554,452,445.5487
17,110
pythondev
help
thank you, sorry about that
2019-04-05T08:25:35.548800
Nola
pythondev_help_Nola_2019-04-05T08:25:35.548800
1,554,452,735.5488
17,111
pythondev
help
Hi
2019-04-05T08:31:36.549400
Many
pythondev_help_Many_2019-04-05T08:31:36.549400
1,554,453,096.5494
17,112
pythondev
help
I spend on it like few hours
2019-04-05T08:31:44.549600
Many
pythondev_help_Many_2019-04-05T08:31:44.549600
1,554,453,104.5496
17,113
pythondev
help
and I dont know why it's not working
2019-04-05T08:31:53.549900
Many
pythondev_help_Many_2019-04-05T08:31:53.549900
1,554,453,113.5499
17,114
pythondev
help
scraper = soup.find('a', href=re.compile(r"/\&amp;amp;rid=([a-z0-9\-]+)\&amp;?"))
2019-04-05T08:32:01.550200
Many
pythondev_help_Many_2019-04-05T08:32:01.550200
1,554,453,121.5502
17,115
pythondev
help
i checked on regex101 and it's definitely matching
2019-04-05T08:32:51.550700
Many
pythondev_help_Many_2019-04-05T08:32:51.550700
1,554,453,171.5507
17,116
pythondev
help
byt scraper print none or if i use soup.find_all it's return []
2019-04-05T08:33:22.551200
Many
pythondev_help_Many_2019-04-05T08:33:22.551200
1,554,453,202.5512
17,117
pythondev
help
Can you post an example link element that you are trying to capture? This is just a guess but it feels odd that you'd have `\&amp;amp;` instead of just `\&amp;`
2019-04-05T08:44:42.552400
Wilber
pythondev_help_Wilber_2019-04-05T08:44:42.552400
1,554,453,882.5524
17,118
pythondev
help
i retriving it with soup
2019-04-05T08:45:22.552700
Many
pythondev_help_Many_2019-04-05T08:45:22.552700
1,554,453,922.5527
17,119
pythondev
help
so it's converting
2019-04-05T08:45:28.553100
Many
pythondev_help_Many_2019-04-05T08:45:28.553100
1,554,453,928.5531
17,120